EVALUATION
to: ###@###.###
cc: ###@###.###
We cannot reproduce this problem.
Could you please provide us with a source file or package and the
javadoc command that would reproduce this problem?
-Doug
Aha! I see example doc comments provided on Bug Parade:
I'm getting this too, with the released 1.4. As far as I
can tell, this became a bug between 1.4b1 and 1.4b2.
Looks like it's breaking when it's writing index-all.html.
Haven't got a very simple test case, but I've tracked it
down to a source file which has two links in the first
sentence of the class description comment.
The following class doesn't cause JavaDoc to crash, but it
*does* give a very spurious entry in the index-all.html
page, which could be relevant:
/**
* Here's the <a href="mailto:###@###.###">first</a>
* and here's the <a href="http://www.pobox.com">second</a>.
*/
public class Test
{
public void bar()
{
}
}
Jon ###@###.###
this source wild produce the exception as well:
---------------------------------
/**
<a href=x>
<a href=x>
*/
public class A { }
---------------------------------
regards marco
============================
Javadoc terminates with StringIndexOutOfBoundsException when it
processes the following Doc comment:
/**
* Here's the <a href="mailto:###@###.###">first</a>
* and here's the <a href="http://www.pobox.com">second</a>.
*/
While the doclet is processing the href stored in a StringBuffer, it
makes calls to String.indexOf(), where the String represents the
original href. The doclet should be calling StringBuffer.indexOf()
instead because the href length may change as it is being processed.
A regression test has been added at:
test/com/sun/javadoc/TestTagInheritenceWrapper.sh
###@###.### 2002-04-15
|