Share

Code Generation Library

Tracker: Bugs

5 Unit tests fail when compiling from cglib-src-2.1_3.jar - ID: 1604317
Last Update: Comment added ( herbyderby )

Using the source code from cglib-src-2.1_3.jar, my Ant build fails with a
NullPointerException in TestParallelSorter.

[java] There was 1 error:
[java] 1)
testSorts(net.sf.cglib.util.TestParallelSorter)java.lang.NullPointerExcepti
on
[java] at java.io.Reader.<init>(Reader.java:61)
[java] at
java.io.InputStreamReader.<init>(InputStreamReader.java:55)
[java] at
net.sf.cglib.util.TestParallelSorter.getTestData(TestParallelSorter.java:71
)
[java] at
net.sf.cglib.util.TestParallelSorter.testSorts(TestParallelSorter.java:30)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
9)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
[java] at net.sf.cglib.TestAll.main(TestAll.java:99)

[java] FAILURES!!!
[java] Tests run: 129, Failures: 0, Errors: 1



This happened because the file "words.txt" was missing from the src jar.
That in turn was because the target "srcjar" doesn't include "src/**/*.txt"
in the src jar.

To fix this, build.xml should be changed to add this line:
<include name="src/**/*.txt"/>
to this task:
<jar basedir="./"
jarfile="${dist.home}/${component.name}-src-${component.version}.jar" >


Sean Flanigan ( seanf2061 ) - 2006-11-28 08:12

5

Closed

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2009-01-11 20:31
Sender: herbyderbyProject Admin

Obsolete


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 2 )

Field Old Value Date By
status_id Open 2009-01-11 20:31 herbyderby
close_date - 2009-01-11 20:31 herbyderby