-
Bug
-
Resolution: Fixed
-
P3
-
6u91
-
b05
-
b09
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064509 | 6u95 | Andreas Eriksson | P3 | Resolved | Fixed | b01 |
Testsuite name: j2se_rest
Test name(s): com/sun/tools/attach/BasicTests.java
Product(s) tested: JDK 6u91b05
OS/architecture: Linux
Product Bug or Test Bug : Test Bug
Reproducible: Always
Reproducible on machine: stt-33.ru.oracle.com, spb23117.ru.oracle.com, spb23297.ru.oracle.com(Windows)
Is it a Regression: No
Regression introduced in release/build: N/A
Test result on the last GAed release for this train:
Test result on FCS:
Is it a platform specific issue: No( fails in linux and windows)
Exception/Error from Log:
----------System.err:(16/919)----------
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: '{' expected
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: ')' expected
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: ';' expected
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: 'try' without 'catch' or 'finally'
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:42: reached end of file while parsing
}
^
5 errors
result: Failed. Compilation failed: Compilation failed
test result: Failed. Compilation failed: Compilation failed
Test run log location:
Steps to reproduce:
1. login into stt-33.ru.oracle.com
2. run : /export/jdk/jdk1.6.0_91b05/bin/java -jar /net/stt-13.ru.oracle.com/export/home0/regression/tools/jtreg/lib/jtreg.jar -timeout:10 -noreport -verbose -vmoptions:'-Xmixed -server -d64' -automatic -jdk:/export/jdk/jdk1.6.0_91b05 -r:/export/home/gtee -w:/export/home/gtee/ -dir:/net/stt-13.ru.oracle.com/export/home0/regression/workspaces/1.6.0/1.6.0_91b05/j2se/test com/sun/tools/attach/BasicTests.java
New code has been added in Application.java which is causing compilation error as try-with-resources statement is introduced in JDK 7.
Test name(s): com/sun/tools/attach/BasicTests.java
Product(s) tested: JDK 6u91b05
OS/architecture: Linux
Product Bug or Test Bug : Test Bug
Reproducible: Always
Reproducible on machine: stt-33.ru.oracle.com, spb23117.ru.oracle.com, spb23297.ru.oracle.com(Windows)
Is it a Regression: No
Regression introduced in release/build: N/A
Test result on the last GAed release for this train:
Test result on FCS:
Is it a platform specific issue: No( fails in linux and windows)
Exception/Error from Log:
----------System.err:(16/919)----------
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: '{' expected
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: ')' expected
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: ';' expected
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:30: 'try' without 'catch' or 'finally'
try (PrintWriter writer = new PrintWriter(outFileName)) {
^
/export/local/aurora/CommonData/j2se/test/com/sun/tools/attach/Application.java:42: reached end of file while parsing
}
^
5 errors
result: Failed. Compilation failed: Compilation failed
test result: Failed. Compilation failed: Compilation failed
Test run log location:
Steps to reproduce:
1. login into stt-33.ru.oracle.com
2. run : /export/jdk/jdk1.6.0_91b05/bin/java -jar /net/stt-13.ru.oracle.com/export/home0/regression/tools/jtreg/lib/jtreg.jar -timeout:10 -noreport -verbose -vmoptions:'-Xmixed -server -d64' -automatic -jdk:/export/jdk/jdk1.6.0_91b05 -r:/export/home/gtee -w:/export/home/gtee/ -dir:/net/stt-13.ru.oracle.com/export/home0/regression/workspaces/1.6.0/1.6.0_91b05/j2se/test com/sun/tools/attach/BasicTests.java
New code has been added in Application.java which is causing compilation error as try-with-resources statement is introduced in JDK 7.
- backported by
-
JDK-8064509 [TEST_BUG] Try without catch or finally results in compilation error for 3 tests in JDK 6u91b05
- Resolved
- relates to
-
JDK-6461635 [TEST_BUG] BasicTests.sh test fails intermittently.
- Resolved