-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.2.0
-
sparc
-
solaris_2.6
Name: akC57697 Date: 02/04/98
The java.awt.image.ByteLookupTable c-tor does not work with offset
because of "this." omitted is ByteLookupTable source code.
-------------------- Example -----------------------
import java.awt.image.ByteLookupTable;
public class testBLT {
public static void main(String s[]) {
byte b[]={1};
int magic=13;
ByteLookupTable table = new ByteLookupTable(magic, b);
if (table.getOffset()!=magic) {
System.out.println("The offset is "+table.getOffset()+" ws "+magic);
System.exit(0);
}
System.out.println("The test passed");
System.exit(0);
}
}
----------------------------------------------------
Output:
java testBLT
The offset is 0 ws 13
======================================================================
- duplicates
-
JDK-4109612 The java.awt.image.LookupTable c-tor does not work
- Closed