< prev index next >

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

Print this page
@@ -527,10 +527,15 @@
          if (methodType != null) {
              print(new JavaTypePrinter(false).printTypeArgs(methodType.typeParamTypes));
          }
          switch (name) {
              case "<init>":
+                 String returnType = getJavaReturnType(d);
+                 if (!returnType.equals("void")) { // static factories for primitive classes
+                     print(returnType);
+                     print(" ");
+                 }
                  print(getJavaName(classFile));
                  print(getJavaParameterTypes(d, flags));
                  break;
              case "<clinit>":
                  print("{}");
< prev index next >