Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8007135

tools/launcher/VersionCheck.java failing with new tool jabswitch

XMLWordPrintable

    • b77
    • Not verified


      The addition of AccessBridge (JDK-8000839) means there is another tool in the bin directory (jabswitch), this looks like it might need to be added to the black list of tools that don't accept -version.

      --------------------------------------------------
      TEST: tools/launcher/VersionCheck.java
      JDK under test: (C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P)
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-jprtadm_2013_01_29_21_34-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b15, mixed mode)



      ACTION: compile -- Passed. Compilation successful
      REASON: User specified action: run compile VersionCheck.java
      TIME: 0.062 seconds
      messages:
      command: compile C:\jprt\T\P1\042255.ssteuck\s\jdk\test\tools\launcher\VersionCheck.java
      reason: User specified action: run compile VersionCheck.java
      elapsed time (seconds): 0.062

      ACTION: build -- Passed. All files up to date
      REASON: Named class compiled on demand
      TIME: 0.0 seconds
      messages:
      command: build VersionCheck
      reason: Named class compiled on demand
      elapsed time (seconds): 0.0

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed
      REASON: User specified action: run main VersionCheck
      TIME: 5.126 seconds
      messages:
      command: main VersionCheck
      reason: User specified action: run main VersionCheck
      elapsed time (seconds): 5.126
      STDOUT:
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\appletviewer.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\extcheck.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\idlj.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jabswitch.exe
      Error: C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jabswitch.exe fails -J-version comparison
      Expected:
      java version "1.8.0-internal"
      Java(TM) SE Runtime Environment (build 1.8.0-internal-jprtadm_2013_01_29_21_34-b00)
      Actual:

      jabswitch [/enable | /disable | /version | /?]

      Description:
        jabswitch enables or disables the Java Access Bridge.

      Parameters:
        /enable Enable the Java Accessibility Bridge.
        /disable Disable the Java Accessibility Bridge.
        /version Display the version.
        /? Display this usage information.

      Note:
        The Java Access Bridge can also be enabled with the
        Windows Ease of Access control panel (which can be
        activated by pressing Windows + U). The Ease of Access
        control panel has a Java Access Bridge checkbox. Please
        be aware that unchecking the checkbox has no effect and
        in order to disable the Java Access Bridge you must run
        jabswitch.exe from the command line.
      Error: C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jabswitch.exe fails -J-fullversion comparison
      Expected:
      java full version "1.8.0-internal-jprtadm_2013_01_29_21_34-b00"
      Actual:

      jabswitch [/enable | /disable | /version | /?]

      Description:
        jabswitch enables or disables the Java Access Bridge.

      Parameters:
        /enable Enable the Java Accessibility Bridge.
        /disable Disable the Java Accessibility Bridge.
        /version Display the version.
        /? Display this usage information.

      Note:
        The Java Access Bridge can also be enabled with the
        Windows Ease of Access control panel (which can be
        activated by pressing Windows + U). The Ease of Access
        control panel has a Java Access Bridge checkbox. Please
        be aware that unchecking the checkbox has no effect and
        in order to disable the Java Access Bridge you must run
        jabswitch.exe from the command line.
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jar.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jarsigner.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\javac.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\javadoc.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\javah.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\javap.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jcmd.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jconsole.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jdb.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jdeps.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jhat.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jinfo.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jmap.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jps.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jrunscript.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jsadebugd.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jstack.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jstat.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\jstatd.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\keytool.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\kinit.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\klist.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\ktab.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\native2ascii.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\orbd.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\pack200.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\policytool.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\rmic.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\rmid.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\rmiregistry.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\schemagen.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\serialver.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\servertool.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\tnameserv.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\wsgen.exe
      Testing (-J-version): C:\jprt\T\P1\042255~1.SST\TESTPR~1\WINDOW~1.2-P\bin\xjc.exe
      Version Test: 2
      STDERR:
      java.lang.AssertionError: Some tests failed
      at VersionCheck.main(VersionCheck.java:218)
      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:483)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
      at java.lang.Thread.run(Thread.java:722)

      JavaTest Message: Test threw exception: java.lang.AssertionError
      JavaTest Message: shutting down test


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Some tests failed
      --------------------------------------------------

            raginip Ragini Prasad (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: