JDK-6478017 : -Xprint: no commas between type variables
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2006-10-04
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7 b03Fixed
The output from -Xprint option is not correct:

$ cat > Test.java
class Test<A,B,C> {}
$ javac -Xprint Test.java
package unnamed package;

class Test<ABC> {


Notice that there are no commas between ABC.

SUGGESTED FIX See attached webrev tar-ball also: http://sa.sfbay.sun.com/projects/langtools_data/dolphin/6478017.0 src/share/classes/com/sun/tools/javac/processing>sccs sccsdiff -r1.6 -r1.7 PrintingProcessor.java ------- PrintingProcessor.java ------- 372a373 > first = false;

WORK AROUND Only use classes with one type variable :-)

EVALUATION Should be fixed.