< prev index next >

test/javax/imageio/plugins/tiff/TIFFDirectoryTest.java

Print this page

        

*** 152,162 **** check(d.getNumTIFFFields() == 0, "invalid TIFFFields number"); check(d.getTIFFField(Integer.MAX_VALUE) == null, "must return null TIFFField"); long offset = 4L; ! long a[] = {Long.MIN_VALUE, 0, Long.MAX_VALUE}; int v = 100500; TIFFField f1 = new TIFFField(tag1, type, offset, d), f2 = new TIFFField(tag2, v), f3 = new TIFFField(tag3, type, a.length, a); --- 152,162 ---- check(d.getNumTIFFFields() == 0, "invalid TIFFFields number"); check(d.getTIFFField(Integer.MAX_VALUE) == null, "must return null TIFFField"); long offset = 4L; ! long a[] = {0, Integer.MAX_VALUE, (1 << 32) - 1}; int v = 100500; TIFFField f1 = new TIFFField(tag1, type, offset, d), f2 = new TIFFField(tag2, v), f3 = new TIFFField(tag3, type, a.length, a);
< prev index next >