java.awt.image.SinglePixelPackedSampleModel

David Gilbert david.gilbert@object-refinery.com
Mon Sep 27 23:05:00 GMT 2004


I've attached some tests for the
java.awt.image.SinglePixelPackedSampleModel class.  With JDK 1.4 the
tests all pass, with a fairly recent CVS version of Classpath running on
JamVM 1.2.0 there are 14 failures.  The failures are not too serious,
just missing implementations of equals() and hashCode(), and not
throwing the specified exceptions on bad inputs:

dgilbert@linux42:~/workspace/mauve> jamvm -classpath .
gnu.testlet.SimpleTestHarness -file CurrentTests.txt -debug
FAIL:
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.constructors:
(int, int, int, int[]) (number 5)
FAIL:
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.constructors:
(int, int, int, int[]) (number 8)
FAIL:
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.constructors:
(int, int, int, int, int[]) (number 5)
FAIL:
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.constructors:
(int, int, int, int, int[]) (number 8)
FAIL:
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.createSubsetSampleModel (number 7)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.equals
(number 1)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.equals
(number 2)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.equals
(number 5)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.equals
(number 7)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.equals
(number 9)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.equals
(number 11)
FAIL:
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.getDataElements:
uncaught exception at "(int, int, Object, DataBuffer(Byte))" number 5
java.lang.ArrayStoreException
   at java.lang.VMSystem.arraycopy (Native Method)
   at java.lang.System.arraycopy (System.java:418)
   at gnu.java.awt.Buffers.getData (Buffers.java:206)
   at java.awt.image.SinglePixelPackedSampleModel.getDataElements
(SinglePixelPackedSampleModel.java:160)
   at
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.getDataElements.testByte (getDataElements.java:89)
   at
gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.getDataElements.test (getDataElements.java:46)
   at gnu.testlet.SimpleTestHarness.runtest (SimpleTestHarness.java:266)
   at gnu.testlet.SimpleTestHarness.main (SimpleTestHarness.java:394)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.hashCode
(number 1)
FAIL: gnu.testlet.java.awt.image.SinglePixelPackedSampleModel.hashCode
(number 2)
got 1075486680 but expected 1075486848
14 of 228 tests failed
dgilbert@linux42:~/workspace/mauve> java -classpath .
gnu.testlet.SimpleTestHarness -file CurrentTests.txt -debug
0 of 241 tests failed

Regards,

Dave Gilbert
http://www.jfree.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: constructors.java
Type: text/x-java
Size: 6179 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: createCompatibleSampleModel.java
Type: text/x-java
Size: 2593 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: createSubsetSampleModel.java
Type: text/x-java
Size: 2770 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: equals.java
Type: text/x-java
Size: 3069 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getBitMasks.java
Type: text/x-java
Size: 1644 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getBitOffsets.java
Type: text/x-java
Size: 1611 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0005.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getDataElements.java
Type: text/x-java
Size: 5977 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0006.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getNumDataElements.java
Type: text/x-java
Size: 1567 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getOffset.java
Type: text/x-java
Size: 1670 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getPixel.java
Type: text/x-java
Size: 3063 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getPixels.java
Type: text/x-java
Size: 3896 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getSample.java
Type: text/x-java
Size: 2401 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getSamples.java
Type: text/x-java
Size: 4003 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getScanlineStride.java
Type: text/x-java
Size: 1754 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hashCode.java
Type: text/x-java
Size: 1791 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setDataElements.java
Type: text/x-java
Size: 10701 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0015.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setPixel.java
Type: text/x-java
Size: 9419 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setSample.java
Type: text/x-java
Size: 9633 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/mauve-patches/attachments/20040927/8011f070/attachment-0017.bin>


More information about the Mauve-patches mailing list