Name: gm110360 Date: 02/10/2003
FULL PRODUCT VERSION :
getDocumentBase for http://java.sun.com/products/jdk/1.2/index.html is
http://java.sun.com/products/jdk/1.2/index.html
FULL OPERATING SYSTEM VERSION : w2k
A DESCRIPTION OF THE PROBLEM :
getDocumentBase() in applet package is broken. It is
supposed to returns an absolute URL naming the directory of
the document in which the applet is embedded.
For example,
suppose an applet is contained within the
document: "http://java.sun.com/products/jdk/1.2/index.html"
The document base should
be:"http://java.sun.com/products/jdk/1.2/" based on
documentation on SUN's web site, but now it returns
http://java.sun.com/products/jdk/1.2/index.html. please fix
it. Thanks.
REGRESSION. Last worked in version 1.3.1
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Please visit
http://lordr1.cs.qc.edu/~nixon/cs195/ascii/Lab06/ViewURLTest.html
2.
3.
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 179771)
======================================================================
- duplicates
-
JDK-4710854 JApplet.getCodeBase() and getDocumentBase() don't work as documented
-
- Closed
-