--- old/src/jdk.jdi/share/classes/com/sun/tools/jdi/EventSetImpl.java 2020-03-26 16:01:06.000000000 -0700 +++ new/src/jdk.jdi/share/classes/com/sun/tools/jdi/EventSetImpl.java 2020-03-26 16:01:05.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1998, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1998, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -425,8 +425,16 @@ } public String className() { - return classSignature.substring(1, classSignature.length()-1) - .replace('/', '.'); + String name = classSignature; + int index = name.indexOf("."); // check if it's a hidden class + if (index < 0) { + name = name.replace('/', '.'); + } else { + // the class name of a hidden class is + "/" + + name = name.substring(0, index).replace('/', '.') + "/" + + name.substring(index + 1, name.length()); + } + return name; } public String classSignature() {