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

Vista: AppletContext.showDocument() works abnormally for "file:/" protocol URL

    Details

    • Subcomponent:
    • Resolved In Build:
      b85
    • CPU:
      x86
    • OS:
      windows_vista

      Backports

        Description

        AppletContext.showDocument() works abnormally for "file:/" protocol URL.

        Tested OS : Windows vista (beta)
        Tested build : JDK5.0u7

        Description:
        Pass an absolute file protol type url to the method getAppletContext().showDocument(...),it will fail to open the url.
        Error shows that needless "file:///"+ logical disk number is appended in front of inputed absolute url.

        Sample codes to reproduce it:
         URL url=new URL("file:/c:/index.html");//an absolute file type url
         getAppletContext().showDocument(url, "_top");
        Error likes "can't fild file file:///c:/c:/index.html" will be given.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jchusunw Jacky Chu (Inactive)
                  Reporter:
                  duke J. Duke (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: