JDK-6602426 : TEST_BUG: test/sun/misc/Version/VersionCheck.java fails
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6u4,6u5,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-09-07
  • Updated: 2011-09-22
  • Resolved: 2011-04-19
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 6 JDK 7
6u10Resolved 7 b22Fixed
Description
The test test/sun/misc/Version/VersionCheck.java needs to be deleted in both jdk7
and 6u5 as it is not correct anymore after the fix for new HSX versionning:
  6590301: HotSpot VM should have own version separate from JDK version

This is a relevant email thread below:

------------------------------------------------------------------------
java.lang.RuntimeException: Mismatched jvmMajorVersion = 11 jdkMajorVersion = 1
	at VersionCheck.main(VersionCheck.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:623)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:78)
	at java.lang.Thread.run(Thread.java:659)

I don't see a CR for it.

- jjh
-----------------------------------------------------------------------
Some questions were raised earlier.
The VersionCheck.java was added as a sanity test for the fix for 6272688 which defines a new private interface between SDK and VM to pass version information.  This test is intended to catch regression introduced to this private interface.  A side effect of this test can make sure that a VM of a correct version of VM is dropped to the JDK but it's not the main purpose of the test.

Since the HS version is now changed, we need to think of a different way to verify if the jvm_version_info interface is correct, if possible.  Similarly for the SDK side.  As Jim mentioned, we can't have regression tests failing.  Please delete the test and you can add a new regression test later when you determine a way to verify it.

Mandy 
-----------------------------------------------------------------------

Comments
EVALUATION Integrated into 6u4 b04
2007-10-02

SUGGESTED FIX Please, refer to the Evaluation.
2007-09-12

EVALUATION This is a sanity test which became incorrect after HSX versionning fix was putback. The test needs to be deleted from set of the SDK workspace regression tests.
2007-09-11