|
Quick Lists
|
|
Bug ID:
|
4472003
|
|
Votes
|
0
|
|
Synopsis
|
getDocumentBase behave different with java api specification
|
|
Category
|
java:appletviewer
|
|
Reported Against
|
merlin-beta2
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4456393,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
4456393
,
4430345
|
|
Submit Date
|
20-JUN-2001
|
|
Description
|
Platform
Generic
JDK Build:
JDK1.2.2, JDK1.3 and JDK1.4 merlin beta refresh b68
How to reproduce
1. get the getDocumentBase.tar from this attachment
2. untar it and go to new
3. set JAVA_HOME
4. sh Doit.sh
you will see
sh Doit.sh
JAVA_FLAGS =
java version "1.4.0-beta_refresh"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b68)
Java HotSpot(TM) Client VM (build 1.4.0-beta_refresh-b68, mixed mode)
URL = http://javaweb.eng/~stuartk/roonadan20010619194412/getDocumentBase.html
^^^^^^^^^^^^^^^^^^^^^^
which is not desired output according java api specification
please look at jdk1.4/doc/api/java/applet/Applet.html#getDocumentBase(), it said
"
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 is:
http://java.sun.com/products/jdk/1.2/
"
|
|
Work Around
|
N/A
|
|
Evaluation
|
Duplicate.
xxxxx@xxxxx 2001-06-20
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |