United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6956638 JavacTask.generate does not generate all required files
JDK-6956638 : JavacTask.generate does not generate all required files

Details
Type:
Bug
Submit Date:
2010-05-28
Status:
Closed
Updated Date:
2011-05-18
Project Name:
JDK
Resolved Date:
2011-05-18
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

Description
Reported on compiler-dev mailing list:

The order of files given to javac via JavacTask affects which files are generated. -XDverboseCompilePolicy indicates two files are being deferred and not then not generated.


1- javac given java source JavaFileObjects [C:\foo\src\T2.java, C:\foo\src\T1.java, C:\foo\src\T3.java, C:\foo\src\Test.java]
2- 4 4 2
3- C:\foo\tgt\T3.class C:\foo\tgt\Test.class
5- C:\foo\tgt\T3.class C:\foo\tgt\Test.class
----
[attribute T2]
[attribute T3]
[attribute T1]
[attribute Test]
[flow T2]
[flow T3]
[flow T1]
[flow Test]
[defer T2]
[desugar T3]
[defer T1]
[desugar Test]
[generate code T3]
[generate code Test]


[Test program attached]

                                    

Comments
EVALUATION

Root cause is "11-Closed/Not Reproducible", meaning that the bug does not exist as described in JDK7 at this point. However, a test has been filed and pushed, so to keep the audit scripts happy, the bug is being marked 10-Fix Delivered.
                                     
2010-07-01



Hardware and Software, Engineered to Work Together