United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6478017 -Xprint: no commas between type variables
JDK-6478017 : -Xprint: no commas between type variables

Details
Type:
Bug
Submit Date:
2006-10-04
Status:
Closed
Updated Date:
2011-05-17
Project Name:
JDK
Resolved Date:
2011-05-17
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
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> {

  Test();
}
$

Notice that there are no commas between ABC.

                                    

Comments
WORK AROUND

Only use classes with one type variable :-)
                                     
2006-10-04
EVALUATION

Should be fixed.
                                     
2006-10-04
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;
                                     
2006-10-04



Hardware and Software, Engineered to Work Together