United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6602426 : TEST_BUG: test/sun/misc/Version/VersionCheck.java fails

Details
Type:
Bug
Submit Date:
2007-09-07
Status:
Closed
Updated Date:
2011-09-22
Project Name:
JDK
Resolved Date:
2011-04-19
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u4,6u5,7
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

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



Hardware and Software, Engineered to Work Together