harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Kishenko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-1666) [classlib][awt] ByteLookupTable(4, new byte[]{}) expected IllegalArgumentException
Date Tue, 03 Oct 2006 07:54:19 GMT
[classlib][awt] ByteLookupTable(4, new byte[]{}) expected IllegalArgumentException

                 Key: HARMONY-1666
                 URL: http://issues.apache.org/jira/browse/HARMONY-1666
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Denis Kishenko
            Priority: Minor

Harmony implementation of ByteLookupTable constructor doesn't throw an exception while RI
throws IllegalArgumentException. Harmony doesn't follow spec. 

============ Spec ==========================
public ByteLookupTable(int offset, byte[][] data)
   IllegalArgumentException - if offset is is less than 0 or if the length of data is less
than 1

============== Test =============
import java.awt.image.*;

public class Test {
   public static void main(String[] argv) {
       new ByteLookupTable(4, new byte[]{});

============ RI output ============
java.lang.IllegalArgumentException: Number of components must  be at least 1
    at java.awt.image.LookupTable.<init>(LookupTable.java:55)
    at java.awt.image.ByteLookupTable.<init>(ByteLookupTable.java:74)
    at Test.main(Test.java:7)

========== Harmony output =========

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message