changeset 58798:f3437f285112

8242241: add assert to ClassUnloadEventImpl::className Summary: Add assert Reviewed-by: cjplummer, dcubed
author sspitsyn
date Mon, 13 Apr 2020 18:02:13 +0000
parents e79e66598f62
children 8d94623b5532
files src/jdk.jdi/share/classes/com/sun/tools/jdi/EventSetImpl.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jdi/share/classes/com/sun/tools/jdi/EventSetImpl.java	Mon Apr 13 10:54:12 2020 -0700
+++ b/src/jdk.jdi/share/classes/com/sun/tools/jdi/EventSetImpl.java	Mon Apr 13 18:02:13 2020 +0000
@@ -425,6 +425,7 @@
         }
 
         public String className() {
+            assert classSignature.startsWith("L") && classSignature.endsWith(";");
             return classSignature.substring(1, classSignature.length()-1)
                 .replace('/', '.');
         }