JDK-7015410 : test/java/net/Socks/SocksProxyVersion.java needs to be updated due to 7013420
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-01-27
  • 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 b130Fixed
Related Reports
Relates :  
Description
TEST: java/net/Socks/SocksProxyVersion.java
JDK under test: (/tmp/jprt/P2/T/200832.ab23780/testproduct/linux_x64_2.6-product)
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-201101272008.ab23780.tl-nio2-merge-b00)
Java HotSpot(TM) 64-Bit Server VM (build 20.0-b06, mixed mode)

ACTION: build -- Failed. Compilation failed: Compilation failed
REASON: Named class compiled on demand
TIME:   0.007 seconds
messages:
command: build SocksProxyVersion
reason: Named class compiled on demand
elapsed time (seconds): 0.007

ACTION: compile -- Failed. Compilation failed: Compilation failed
REASON: .class file out of date or does not exist
TIME:   0.007 seconds
messages:
command: compile /tmp/jprt/P2/T/200832.ab23780/source/jdk/test/java/net/Socks/SocksProxyVersion.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.007
direct:
/tmp/jprt/P2/T/200832.ab23780/source/jdk/test/java/net/Socks/SocksProxyVersion.java:78: <identifier> expected
        try (ss) {
               ^
/tmp/jprt/P2/T/200832.ab23780/source/jdk/test/java/net/Socks/SocksProxyVersion.java:78: ')' expected
        try (ss) {
                ^
/tmp/jprt/P2/T/200832.ab23780/source/jdk/test/java/net/Socks/SocksProxyVersion.java:78: '{' expected
        try (ss) {
                  ^
3 errors

TEST RESULT: Failed. Compilation failed: Compilation failed

Comments
EVALUATION Minor test update after the changes to the try-with-resources construct to no longer support expressions.
28-01-2011