JDK-6843761 : Update langtools tests to remove unncessary -source and -target options
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-05-21
  • Updated: 2022-07-27
  • Resolved: 2011-07-25
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 Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b62Fixed OpenJDK6Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
Unlike most other Java programs, javac regression tests should by default not have a specified -source or -target setting.  That way, by default tests are assumed to be applicable to the next version of Java too, which is usually true.  In specialized cases, tests are -source or -target version specific.

Spurious settings of -source and -target should be purged from the regression tests suite.  This will improve the effectiveness of testing of the repository.

(Explicit -source settings are needed to test new language features in a release when the default source/target is earlier than the latest source/target.)

Comments
EVALUATION A fine idea.
21-05-2009