JDK-6956638 : JavacTask.generate does not generate all required files
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: tools
  • Sub-Component: javac
  • Priority: P3
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2010-05-28
  • Updated Date: 2011-05-18
  • Resolved Date: 2011-05-18
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7
7 b100Fixed
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