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

Test case has hard code, so that applet thread threw exception

    Details

    • Subcomponent:
    • Resolved In Build:
      b132
    • CPU:
      x86
    • OS:
      linux
    • Verification:
      Verified

      Description

      bug summary: Applet thread threw exceptionsee
      Testsuite name: swing
      JDK/JRE tested: jdk-7-ea-bin-b116-linux-i586-28_oct_2010.bin
      jdk-7-ea-bin-b116-linux-amd64-28_oct_2010.bin
      OS/architecture: x86 & x64
      Reproducible: Always
      Reproducible on machine:SLES11-x64 , rhel5-x64
      Is it a platform specific regression: N
      Is it a Regression: N
      Test run log location:
      http://jsqalab.sfbay.sun.com/results/Evergreen/7/1.7.0b116/swing/SLES11-X64/results/workdir/javax/swing/JFileChooser/6798062/

      Test run result location: http://jsqalab.sfbay.sun.com/results/Evergreen/7/1.7.0b116/swing/SLES11-X64/results/workdir
      Steps to reproduce:
      1. Install test bundle JDK7b116 from http://jre.sfbay/java/re/jdk/7/promoted/ea/b116/bundles/linux-i586/ to /workspace/jdk1.7.0
      2. Install Jtreg from http://jre.sfbay.sun.com/java/re/jtreg/3.2.2_03/promoted/latest/binaries/jtreg/
      To /workspace/reg/jct3.2
      3. Download and unzip ws from
      http://hg.openjdk.java.net/jdk7/swing/jdk
       to /workspace/reg/
      4. Modify the reg_swing.sh as:
      /workspace/reg/jct3.2/linux/bin/jtreg -cpa:/workspace/reg/test -g -v -m -jdk:/workspace/jdk1.7.0 -r:/workspace/reg/results/reportdir -w:/workspace/reg/results/workdir /workspace/reg/test
      5. Make printer work fine
      6. From command line, run ksh reg_swing.sh
      7. After Jtreg launched, choose testlist filter:
                 closed/javax/swing/
                 javax/swing
      8. Choose keyword and mark it as manual

      Instruction:
      Execute case javax/swing/JFileChooser/6798062/bug6798062.java

      Actual behavior:
      See attachment"6798062.png" Execution failed: Applet thread threw exception: java.lang.RuntimeException: Directory c: not found.

      Analysis:
      Source code:
          private JPanel initialize() {
              File file = new File("c:/");
      //There is a hard code there.
              try {
                  folder = ShellFolder.getShellFolder(file);
              } catch (FileNotFoundException e) {
                  fail("Directory " + file.getPath() + " not found");
              }
      Run normal after Modify as blew:
      private JPanel initialize() {
              File file = new File("/");

      verify:
      use jdk7b109 - JDK7b115 on Rhel5-x64 & sles11-x64 found same issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rupashka Pavel Porvatov (Inactive)
                Reporter:
                tonyli Tony Li
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: