< prev index next >

src/java.base/share/classes/jdk/internal/reflect/AccessorGenerator.java

Print this page

        

@@ -418,11 +418,12 @@
             throw new InternalError("Should have found primitive type");
         } else if (c.isArray()) {
             return "[" + getClassName(c.getComponentType(), true);
         } else {
             if (addPrefixAndSuffixForNonPrimitiveTypes) {
-                return internalize("L" + c.getName() + ";");
+                final String desc = (c.isIndirectType() ? 'L' : 'Q') + c.getName() + ";";
+                return internalize(desc);
             } else {
                 return internalize(c.getName());
             }
         }
     }
< prev index next >