JDK-6759795 : test/tools/apt/Basic/print.sh may fail depending on jtreg options
  • Type: Bug
  • Component: tools
  • Sub-Component: apt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-10-15
  • Updated: 2011-05-18
  • Resolved: 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.
7 b39Fixed
test/tools/apt/Basic/print.sh is a golden file test.   It uses jtreg @build to compile a file Aggregate.java, and then uses apt to print it. The result is compared against a golden file.  The problem is that @build will use jtreg compiler options and so may or may not include -g. This affects the debugging info written to the class file, and so affects the apt outut.

The test should be rewritten to compile the file directly, and not use @build.