JDK-7006109 : Add test library to simplify the task of writing automated type-system tests
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: unknown
  • Submitted: 2010-12-10
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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
7 b123Fixed
Related Reports
Relates :  
Relates :  
Description
There are many sections in the JLS that would need a stress test; i.e. consider assignment conversion; how do we make sure that the compiler is implementing the JLS in full? A good way to do it would be to write a regression test that checks each possible pair of types available in javac, and verifies that the output is conforms w.r.t. the JLS.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/build/langtools/rev/2199365892b1
25-12-2010

SUGGESTED FIX A webrev of this fix is available at the following URL: http://hg.openjdk.java.net/jdk7/tl/langtools/rev/2199365892b1
13-12-2010

EVALUATION Seems a great idea. The test library should be easy enough to 'stimulate' others to write type-system related tests. The library should also come with some examples that illustrate how it can be used. This infrastructure can serve as a basis for 7005140.
10-12-2010