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

UIMM:Desktop:Fails to open a file in assoicated application

    Details

    • Subcomponent:
    • CPU:
      x86, sparc
    • OS:
      linux, solaris_2.5.1

      Description

      OPERATING SYSTEM(S):
      --------------------
      SUSE Linux Enterprise Server 10

      FULL JDK VERSION(S):
      -------------------
      java version "1.6.0_02"
      Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
      Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)


      DESCRIPTION:
      ------------
      PROBLEM DESCRIPTION:

      Desktop open/browse operation does not open the file with the newly associated application.

      TESTCASE DESCRIPTION

      The testcase performs a desktop open on the file specified 10 times with a delay of 10 seconds in between.

      STEPS TO REPRODUCE

      1) Execute the below command
      >>java DesktopOpen <file name - complete path>

      This program opens the same file 10 times with a delay of 10 seconds.
      Change the associated application for example to any other application while testcase is running. To do this:

      1. Right click on the file, go to properties
      2. Select open with tab and specify the application to be used.
      3. Click on close

      File is not opened using the select application.


      TEST CASE:

      import java.awt.*;
      import java.io.*;
      public class DesktopOpen
      {
      public static void main(String[]str)
      {
      try
      {
      for(int i = 1; i < 15; i++)
      {
      System.out.println("Before open : "+i);
      Desktop.getDesktop().open(new File(str[0]));
      System.out.println("After open : "+i);


      Thread.sleep(10000);


      }
      }
      catch(Exception e) { }
      }
      }

        Attachments

          Activity

            People

            • Assignee:
              denis Denis Fokin (Inactive)
              Reporter:
              elarsen Erik Larsen (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: