You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Neil de Hoog <ne...@lunatech.com> on 2000/10/09 21:51:06 UTC

fix for error while loading docbook dtd

In DefaultEntityHandler.java you will find

starting at 1219 :
            newIntArray = new int[chunk * 2][];
            System.arraycopy(fSystemId, 0, newIntArray, 0, chunk);
            newIntArray = new int[chunk * 2][];
            System.arraycopy(fBaseSystemId, 0, newIntArray, 0, chunk);
            fBaseSystemId = newIntArray;
->          fSystemId = newIntArray;

I think it should be:
            newIntArray = new int[chunk * 2][];
            System.arraycopy(fSystemId, 0, newIntArray, 0, chunk);
->          fSystemId = newIntArray;
            newIntArray = new int[chunk * 2][];
            System.arraycopy(fBaseSystemId, 0, newIntArray, 0, chunk);
            fBaseSystemId = newIntArray;

Please don't make me cry againg and accept my fix this time, please,

Neil
Lunatech Research
neil@lunatech.com
neil@v2.nl