Skip to content

Commit d5375c7

Browse files
Sonia Zaldana Calleststuefe
Sonia Zaldana Calles
authored andcommitted
8333308: javap --system handling doesn't work on internal class names
Reviewed-by: liach, stuefe
1 parent 6b961ac commit d5375c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jdk.jdeps/share/classes/com/sun/tools/javap/JavapTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ private JavaFileObject getClassFileObject(String className) throws IOException {
867867
if (moduleLocation != null) {
868868
fo = fileManager.getJavaFileForInput(moduleLocation, className, JavaFileObject.Kind.CLASS);
869869
} else {
870-
if (className.indexOf('.') > 0) {
870+
if (className.indexOf('.') > 0 || className.indexOf('/') > 0) {
871871
//search for classes with a named package in the JDK modules specifed by --system option first
872872
try {
873873
for (Set<Location> locations: fileManager.listLocationsForModules(StandardLocation.SYSTEM_MODULES)) {

0 commit comments

Comments
 (0)