Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116226 - version bump: dev-java/commons-net-1.4.1
Summary: version bump: dev-java/commons-net-1.4.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Java team
URL: http://jakarta.apache.org/commons/net/
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-12-20 19:02 UTC by Josh Nichols (RETIRED)
Modified: 2005-12-21 20:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Nichols (RETIRED) gentoo-dev 2005-12-20 19:02:08 UTC
We are currently at 1.3.0... and 1.4.1 was relased a week or so ago.
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2005-12-20 21:29:16 UTC
A simple bump doesn't seem to entire cut it. With USE=junit, I found the tests fail:

    [junit] Running org.apache.commons.net.time.TimeTCPClientTest
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 1.093 sec
    [junit] Testsuite: org.apache.commons.net.time.TimeTCPClientTest
    [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 1.093 sec

    [junit] Testcase: testInitial took 0.009 sec
    [junit] Testcase: testCompareTimes took 1.074 sec
    [junit]     Caused an ERROR
    [junit] null
    [junit] java.lang.NullPointerException
    [junit]     at org.apache.commons.net.SocketClient.disconnect(SocketClient.java:266)
    [junit]     at org.apache.commons.net.time.TimeTCPClientTest.testCompareTimes(TimeTCPClientTest.java:133)



I put an ebuild up on experimental at http://gentooexperimental.org/svn/java/gentoo-java-experimental/dev-java/commons-net 
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-12-21 08:59:41 UTC
I managed to fix the null pointers, and filed a bug upstream: http://issues.apache.org/bugzilla/show_bug.cgi?id=37985

The next issue is that another test in the same TestCase attempts to lookup the local machine's hostname. If the host doens't have a fully qualified domain name and doesn't have an entry in /etc/hosts for the hostname, then the test will fail. 
Comment 3 Josh Nichols (RETIRED) gentoo-dev 2005-12-21 20:26:46 UTC
So I looked into it a little more, and apparently you don't get the null pointers in the first place if you have your hostname in your /etc/hosts file.
Comment 4 Josh Nichols (RETIRED) gentoo-dev 2005-12-21 20:32:06 UTC
Fixed in CVS. I've disabled unit tests for now, until we it can get fixed upstream...