8242241: add assert to ClassUnloadEventImpl::className

Add assert

Reviewed-by: cjplummer, dcubed
This commit is contained in:
Serguei Spitsyn 2020-04-13 18:02:13 +00:00
parent 7a608f40fc
commit 68e0e49bc8

View File

@ -425,6 +425,7 @@ public class EventSetImpl extends ArrayList<Event> implements EventSet {
}
public String className() {
assert classSignature.startsWith("L") && classSignature.endsWith(";");
return classSignature.substring(1, classSignature.length()-1)
.replace('/', '.');
}