-
Bug
-
Resolution: Fixed
-
P4
-
jtreg7.5.2
-
None
-
generic
-
generic
After commit 79d3fee395060a (CODETOOLS-7903955) tests with @compile directives with args after the source file name fails in the openjdk test suite. An example is test/langtools/tools/javac/6521805/T6521805d.java:
/*
* @test /nodynamiccopyright/
* @bug 6521805
* @summary Regression: JDK5/JDK6 javac allows write access to outer class reference
* @author mcimadamore
*
* @compile/fail/ref=T6521805d.out T6521805d.java -XDrawDiagnostics
*/
Which fails with the following message:
test result: Error. Parse Exception: Can't find source file: -DrawDiagnostics
This is because the CompileAction::init method will set the foundJavaFile flag to true when an arg ending with `.java`, but will not clear the flag before checking the next argument.
/*
* @test /nodynamiccopyright/
* @bug 6521805
* @summary Regression: JDK5/JDK6 javac allows write access to outer class reference
* @author mcimadamore
*
* @compile/fail/ref=T6521805d.out T6521805d.java -XDrawDiagnostics
*/
Which fails with the following message:
test result: Error. Parse Exception: Can't find source file: -DrawDiagnostics
This is because the CompileAction::init method will set the foundJavaFile flag to true when an arg ending with `.java`, but will not clear the flag before checking the next argument.
- caused by
-
CODETOOLS-7903955 jtreg doesn't support .jasm in patch module
-
- Resolved
-
- links to
-
Commit(master) openjdk/jtreg/08368145
-
Review(master) openjdk/jtreg/261