You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by David Gilbert <da...@object-refinery.com> on 2009/06/09 08:42:13 UTC

JFreeChart test failures

Hi,

I ran the JFreeChart test suite against Harmony M9 on Linux and it  
reports 45 failures from 2119 tests.  The tests are included in the  
JFreeChart distribution, see the following URL:

http://www.jfree.org/jfreechart/

The majority of these failures seem to relate to a NPE exception in  
the SimpleDateFormat class:

java.lang.NullPointerException
	at  
java.text.SimpleDateFormat.set2DigitYearStart(SimpleDateFormat.java:722)
	at java.text.SimpleDateFormat.readObject(SimpleDateFormat.java:787)
	at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
	at java.lang.reflect.Method.invoke(Method.java:317)
	at  
java.io.ObjectInputStream.readObjectForClass(ObjectInputStream.java: 
1406)
	at java.io.ObjectInputStream.readHierarchy(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:2003)
	at  
java 
.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java: 
802)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2152)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2107)
	at java.io.ObjectInputStream.readFieldValues(ObjectInputStream.java: 
1186)
	at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java: 
434)
	at  
java.io.ObjectInputStream.readObjectForClass(ObjectInputStream.java: 
1421)
	at java.io.ObjectInputStream.readHierarchy(ObjectInputStream.java:1329)
	at java.io.ObjectInputStream.readNewObject(ObjectInputStream.java:2003)
	at  
java 
.io.ObjectInputStream.readNonPrimitiveContent(ObjectInputStream.java: 
802)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2152)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2107)
	at  
org 
.jfree 
.chart 
.urls 
.junit 
.TimeSeriesURLGeneratorTests 
.testSerialization(TimeSeriesURLGeneratorTests.java:155)

Most of the tests that fail are serialization tests, so it is possible  
that this NPE is triggered when deserialising a SimpleDateFormat  
instance.  I don't have time to investigate further right now, but I  
thought I'd at least report the issue.

Regards,

Dave Gilbert
http://www.free.org/

Re: JFreeChart test failures

Posted by Tim Ellison <t....@gmail.com>.
Hi David,

David Gilbert wrote:
> I ran the JFreeChart test suite against Harmony M9 on Linux and it
> reports 45 failures from 2119 tests.  The tests are included in the
> JFreeChart distribution, see the following URL:
> 
> http://www.jfree.org/jfreechart/

Cool, thanks for running the tests.  I'm sure we can fix those 45
failures together.

> The majority of these failures seem to relate to a NPE exception in the
> SimpleDateFormat class:
> 
> java.lang.NullPointerException
>     at
> java.text.SimpleDateFormat.set2DigitYearStart(SimpleDateFormat.java:722)
>     at java.text.SimpleDateFormat.readObject(SimpleDateFormat.java:787)
<snip>

> Most of the tests that fail are serialization tests, so it is possible
> that this NPE is triggered when deserialising a SimpleDateFormat
> instance.  I don't have time to investigate further right now, but I
> thought I'd at least report the issue.

I agree.  I have recreated it with a simple round-trip test on Harmony,
and opened HARMONY-6228 to track it.

This is not a regression since M9, so won't hold up the vote for M10.
The fix will go in after the release has been delivered.

Thanks,
Tim