This is what i got in o.a.p.cos.COSInteger.java from line 79

    public static COSInteger get(long val) {

        if (LOW <= val && val <= HIGH) {

            int index = (int) val - LOW;

            // no synchronization needed

            if (STATIC[index] == null) {

                STATIC[index] = new COSInteger(val);

            }

            return STATIC[index];

        } else {

            return new COSInteger(val);

        }

    }

And this is what i got in TestCOSInteger.java at line 34


            Assert.assertEquals(i, COSInteger.get(i).intValue());
So i guess that i'm going to download again source and compile it without
modifications...

Tnx, i'll be in touch...

2010/4/21 Jukka Zitting <[email protected]>

> Hi,
>
> On Wed, Apr 21, 2010 at 3:39 PM, Omar Chiyean <[email protected]>
> wrote:
> > By the way no modification to this files...
> > On other files i've made modifications but not from o.a.p.cos
>
> Can you check that line 79 of your copy of
> src/main/java/org/apache/pdfbox/cos/COSInteger.java is:
>
>    public static COSInteger get(long val) {
>
> and that line 34 of src/test/java/org/apache/pdfbox/cos/TestCOSInteger.java
> is:
>
>    Assert.assertEquals(i, COSInteger.get(i).intValue());
>
> You may also want to try re-downloading the sources and doing a fresh
> compile without local modifications to any files.
>
> BR,
>
> Jukka Zitting
>

Reply via email to