JDK-7074189 : some javac tests fail with latest jtreg 4.1 b03
Type:Bug
Component:tools
Sub-Component:javac
Affected Version:7,8
Priority:P2
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2011-08-02
Updated:2013-06-15
Resolved:2012-04-20
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.
EVALUATION
Hmmm, we've uncovered a curiousity in TestReturnCode.java. Errors thrown from annotation processors are treated different (and less severely) than exceptions.
Errors cause EXIT_ERROR, exit code 1, equivalent to a compile-time error
Exceptions cause EXIT_SYSERR, exit code 3, system error or resource exhaustion
03-08-2011
EVALUATION
2. The other two tests are expecting "less common" exit codes from javac. The best way to fix them is to write a library class, CompileFail, which emulates @compile/fail but which also allows the specific exit code to be tested.
03-08-2011
EVALUATION
1. test/tools/javac/warnings/Serial.java
The action
* @compile/fail -Werror -Xlint:all,-path T4994049/ Serial.java
is nonsensical, and succeeding because the compilation fails for the wrong reason.
The line should be deleted.
03-08-2011
EVALUATION
There are three test failures:
tools/javac/processing/errors/TestOptionSyntaxErrors.java
tools/javac/processing/errors/TestReturnCode.java
tools/javac/warnings/Serial.java