Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4645058
Votes 1
Synopsis REGRESSION: stddoclet: Javascript IE load error when linked by -linkoffline
Category doclet:tbd
Reported Against 1.4 , merlin-beta2
Release Fixed 1.4.2(mantis)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 4507507
Submit Date 28-FEB-2002
Description

FULL PRODUCT VERSION :
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

FULL OPERATING SYSTEM VERSION : win NT4 (SP6)

A DESCRIPTION OF THE PROBLEM :
More of a glitch in the Sun web page hierarchy than a bug.

When I generate javadoc pages for my source tree using -linkoffline, 
I use

  javadoc -linkoffline http://java.sun.com/j2se/1.4/docs/api
           http://java.sun.com/j2se/1.4/docs/api ...

Which generates the correct links in the generated web
pages.  However, when I access any of them (using MS IE 5),
For example, when the java.lang.Object page loads:

  http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html

there is no loss of content or functionality as far as I can tell.
However, in the bottom left corner of IE, there is a little yellow yield
sign (with an "!"  in it).  Next to that is the text "Error on page."
I get the following error:

Line: 14
Char: 1
Error: Access is denied.
Code: 0
URL:
http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html

REGRESSION.  Last worked in version 1.3.1

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. generate local web pages with javadoc (as described
above)
2. view said pages in internet explorer (with frames!)
3. follow a reference to a standard java class

EXPECTED VERSUS ACTUAL BEHAVIOR :
The page views fine.

A look at the source shows that the offending line is:

parent.document.title="Object (Java 2 Platform SE v1.4.0)";

which is part of the cleverly-named function asd (inside a
<SCRIPT> block)

ERROR MESSAGES/STACK TRACES THAT OCCUR :
see above

This bug can be reproduced always.
(Review ID: 139241) 
======================================================================
Work Around
N/A
Evaluation
From duplicate bug 4507507, that submitter wrote:
The error does specifiy a line number within the html..here it is

    <SCRIPT>
    function asd()
    {
    parent.document.title="Exception (Java 2 Platform SE v1.4.0)";
    }
    </SCRIPT>
    <BODY BGCOLOR="white" onload="asd();">

Added "javascript" to synopsis

  xxxxx@xxxxx   2002-06-12

Waltrand on BugParade says:
Looks like a regression in 1.4.
If generated with 1.3.1_01, the link to external classes
opens a new window, with its own frame set, and no
access violation occurs.

  xxxxx@xxxxx   2002-06-12

I reproduced this bug in Windows Internet Explorer 5.5
on Win98 and IE 6.0 on Win2000.  It is not reproducible 
in Solaris Netscape 4.79

I got the same little yellow ! yield sign and the same message.  
However, I get the error on the local page BEFORE going to the Object page.
It points me to a different problematic script that
tried to display the words "All Classes" to the right of "Frames | No Frames":

<SCRIPT>
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>

  xxxxx@xxxxx   2002-09-13


Copied from bug 4275630:
     * Many other invalid elements as shown in "Comments" section,
       such as <SCRIPT> requires "type" argument: 
        <SCRIPT type="text/javascript">

       The <SCRIPT> element is currently mistakenly *between*
       the <HEAD> and <BODY> elements.  Try moving it to <HEAD> or <BODY>.
       The w3c validator currently creates a parse tree with a second
       <BODY> tag before the <SCRIPT>
Comments
  
  Include a link with my name & email   

Submitted On 07-JUN-2002
Waltraud
Looks like a regression in 1.4.
If generated with 1.3.1_01, the link to external classes
opens a new window, with its own frame set, and no
access violation occurs.


Submitted On 07-JUN-2002
Waltraud
this is the same as 4507507


Submitted On 19-DEC-2002
jglick
I will point out that the Swing HTML browser (e.g.
JEditorPane) does not render this broken HTML as you would
want! It displays the content of the <script> tag as if it
were ordinary text. Kind of embarrassing, that the Java HTML
renderer displays the bug in Javadoc, though some browsers
(e.g. Mozilla) quietly ignore the misplaced element.


Submitted On 15-MAY-2003
crzyltlman
I'm still noticing this problem on 1.4.2-beta with the latest IE 
on Windows XP.  Perhaps it is time for a repost of this bug.



PLEASE NOTE: JDK6 is formerly known as Project Mustang