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

TEST_BUG: Regtest-test tools/javadoc/dupOk/DupOk.java fails on Windows

    Details

    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description



      Name: asR10013 Date: 09/24/2002


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.4.2-b02
      Testbase : RegTest-test
      Platform[s] : Windows
      Falling test[s]:
              tools/javadoc/dupOk/DupOk.java

      Regtest-test test tools/javadoc/dupOk/DupOk.java fails on Windows.
      First time this test was used to test JDK1.4.2-b02 and it fails with both JDK1.4.2-b02 and JDK1.4.1-b21.
      The cause of the failure is that it always uses ':' as a path separator character:

                  execute("javadoc", "DupOk",
                          new String[]
                      {"-sourcepath",
                       System.getProperty("test.src", ".") + java.io.File.separatorChar + "sp1:" +
                       System.getProperty("test.src", ".") + java.io.File.separatorChar + "sp2",
                       "p"
                      })

      After I had changed 'sp1:' to 'sp1;' the test started to pass on Windows.


      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail15/results/mantis/b02/regtest/win32/winXP_HE__linux-21/workDir/test/tools/javadoc/dupOk/DupOk.jtr


      How to reproduce:
      =================
      Run the following script (you may need to change its variables)
       
      --- script start ---
      #!/bin/bash

      PS=';'
      JAVA_BASE=h:/java
      JDK=$JAVA_BASE/jdk1.4.2/win32
      TEST_BASE=$JAVA_BASE/regtest

      TEST_BASE_ROOT=$TEST_BASE/test
      TEST_PACKAGE=tools/javadoc/DupOk

      TEST_SHORT_NAME=DupOk
      TEST_NAME=$TEST_PACKAGE/$TEST_SHORT_NAME
      JT=$JAVA_BASE/jct/lib/javatest.jar
      JTREG=$JAVA_BASE/jct/lib/jtreg.jar

      TEST_SRC=$TEST_BASE_ROOT/${TEST_NAME}.java

      export CLASSPATH=".${PS}${JDK}${PS}${JDK}/lib/tools.jar${PS}${TEST_BASE}${PS}${TEST_BASE_ROOT}/${TEST_PACKAGE}${PS}${JT}${PS}${JTREG}"

      $JDK/bin/javac -g -classpath "$CLASSPATH" -d . $TEST_SRC

      $JDK/bin/java -cp "$CLASSPATH" -Dtest.src=$TEST_BASE_ROOT/$TEST_PACKAGE $TEST_SHORT_NAME

      --- script end ---

      Test output:
      ============

      Loading source files for package p...
      javadoc: warning - No source files for package p
      Constructing Javadoc information...
      javadoc: warning - No source files for package p
      javadoc: In doclet class DupOk, method start has thrown an exception java.lang.reflect.InvocationTargetException
      java.lang.Error: 1 []
              at DupOk.start(DupOk.java:29)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
              at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:92)
              at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:305)
              at com.sun.tools.javadoc.Start.begin(Start.java:120)
              at com.sun.tools.javadoc.Main.execute(Main.java:65)
              at DupOk.main(DupOk.java:15)
      1 error
      2 warnings
      java.lang.Error
              at DupOk.main(DupOk.java:23)
      Exception in thread "main"


      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              gafter Neal Gafter
              Reporter:
              alssunw Als Als (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: