You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Andreas Delmelle <an...@telenet.be> on 2008/06/23 20:03:10 UTC
Re: svn commit: r670422 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop: fo/ fo/flow/ layoutmgr/ layoutmgr/inline/ render/rtf/
On Jun 23, 2008, at 16:32, Andreas Delmelle wrote:
>> ----- Oorspronkelijk bericht -----
>> Van: Max Berger [mailto:max@berger.name]
>
>> java.lang.StringIndexOutOfBoundsException: String index out of
>> range: -356
>> at java.lang.String.<init>(String.java:208)
>> at org.apache.fop.fo.XMLObj.addCharacters(XMLObj.java:217)
>> at
>
> Oops! I fixed the exact same thing in FOText yesterday... If you
> look closely at that line in XMLObj.java, you'll see that the
> String constructor is not passed a length/count, but an endIndex.
> I'll look into it ASAP, but this is probably what's causing the
> problem here. FOTreeBuilder.characters() now simply passes the
> length, in any case, so the computation (length - start) makes no
> sense.
I haven't committed the testcase yet (I'll see if I can get to it
later tonight), but XMLObj has already been fixed, and I don't get
the error anymore.
Sorry for any inconvenience.
Cheers
Andreas
Re: svn commit: r670422 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop: fo/ fo/flow/ layoutmgr/ layoutmgr/inline/ render/rtf/
Posted by Max Berger <ma...@berger.name>.
Andreas,
thanks for the quick fix!
Max
Am 23.06.2008 um 20:03 schrieb Andreas Delmelle:
>
> On Jun 23, 2008, at 16:32, Andreas Delmelle wrote:
>
>>> ----- Oorspronkelijk bericht -----
>>> Van: Max Berger [mailto:max@berger.name]
>>
>>> java.lang.StringIndexOutOfBoundsException: String index out of
>>> range: -356
>>> at java.lang.String.<init>(String.java:208)
>>> at org.apache.fop.fo.XMLObj.addCharacters(XMLObj.java:217)
>>> at
>>
>> Oops! I fixed the exact same thing in FOText yesterday... If you
>> look closely at that line in XMLObj.java, you'll see that the
>> String constructor is not passed a length/count, but an endIndex.
>> I'll look into it ASAP, but this is probably what's causing the
>> problem here. FOTreeBuilder.characters() now simply passes the
>> length, in any case, so the computation (length - start) makes no
>> sense.
>
> I haven't committed the testcase yet (I'll see if I can get to it
> later tonight), but XMLObj has already been fixed, and I don't get
> the error anymore.
>
> Sorry for any inconvenience.
>
> Cheers
>
>
> Andreas
>