JDK-6759795 : test/tools/apt/Basic/print.sh may fail depending on jtreg options
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: tools
  • Sub-Component: apt
  • Priority: P3
  • Affected Version: 7
  • OS: generic
  • CPU: generic
  • Submit Date: 2008-10-15
  • 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 b39Fixed
Description
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.

Comments
EVALUATION Yes.
2008-10-15