-
Bug
-
Resolution: Fixed
-
P4
-
7
-
b100
-
generic
-
generic
-
Not verified
test/com/sun/servicetags tests may disable and enable system registry for testing purpose.
test/com/sun/servicetag/JavaServiceTagTest.java tests with the system registry disabled while test/com/sun/servicetag/JavaServiceTagTest1.java and SystemRegistryTest.java test with the system registry enabled by setting the system property "servicetag.sthelper.supported" to true.
Since com.sun.servicetag.Registry implementation only checks the system property once, the test/com/sun/servicetag/JavaServiceTagTest1.java and SystemRegistryTest.java failed when running in samevm mode as the system registry was disabled by JavaServiceTagTest.java.
test/com/sun/servicetag/JavaServiceTagTest.java tests with the system registry disabled while test/com/sun/servicetag/JavaServiceTagTest1.java and SystemRegistryTest.java test with the system registry enabled by setting the system property "servicetag.sthelper.supported" to true.
Since com.sun.servicetag.Registry implementation only checks the system property once, the test/com/sun/servicetag/JavaServiceTagTest1.java and SystemRegistryTest.java failed when running in samevm mode as the system registry was disabled by JavaServiceTagTest.java.