Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4109611

The java.awt.image.ByteLookupTable c-tor does not work with offset

    XMLWordPrintable

Details

    • 2d
    • sparc
    • solaris_2.6

    Description



      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

      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              jehung Jeannette Hung
              akuzminorcl Alexander Kuzmin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: