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.
|