Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 34325 invoked from network); 27 Mar 2009 21:57:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 21:57:15 -0000 Received: (qmail 68159 invoked by uid 500); 27 Mar 2009 21:57:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 68042 invoked by uid 500); 27 Mar 2009 21:57:14 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 68032 invoked by uid 99); 27 Mar 2009 21:57:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 21:57:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 21:57:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 72BFB234C003 for ; Fri, 27 Mar 2009 14:56:50 -0700 (PDT) Message-ID: <569294475.1238191010458.JavaMail.jira@brutus> Date: Fri, 27 Mar 2009 14:56:50 -0700 (PDT) From: "Jean-Noel Rivasseau (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CLI-178) org.apache.commons.cli.ParserTestCase: Test doesn't pass on Sun JDK 1.6.0.12, Gentoo Linux In-Reply-To: <255064583.1238183210408.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12690125#action_12690125 ] Jean-Noel Rivasseau commented on CLI-178: ----------------------------------------- Yes, as I pointed out when using the M2 build I dont have failures, but that's because the problematic test is not ran. > org.apache.commons.cli.ParserTestCase: Test doesn't pass on Sun JDK 1.6.0.12, Gentoo Linux > ------------------------------------------------------------------------------------------ > > Key: CLI-178 > URL: https://issues.apache.org/jira/browse/CLI-178 > Project: Commons CLI > Issue Type: Bug > Components: CLI-1.x > Affects Versions: 1.2 > Environment: Gentoo Linux, Sun JDK 1.6.0.12 > Reporter: Jean-Noel Rivasseau > Fix For: 1.3 > > > Hello, I was bumping the Gentoo version of commons-CLI to 1.2 and in the process tried to run the tests. It fails at this test: > [junit] Testsuite: org.apache.commons.cli.ParserTestCase > [junit] at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) > [junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > [junit] at junit.framework.TestSuite.createTest(TestSuite.java:54) > [junit] at junit.framework.TestSuite.addTestMethod(TestSuite.java:280) > [junit] at junit.framework.TestSuite.(TestSuite.java:140) > [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:396) > [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) > [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768) > [junit] )) > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.073 sec > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0.073 sec > [junit] > [junit] Testcase: warning took 0.005 sec > [junit] FAILED > [junit] Cannot instantiate test case: testSimpleShort (java.lang.InstantiationException > [junit] at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) > [junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > [junit] at junit.framework.TestSuite.createTest(TestSuite.java:54) > [junit] at junit.framework.TestSuite.addTestMethod(TestSuite.java:280) > [junit] at junit.framework.TestSuite.(TestSuite.java:140) > [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:396) > [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:911) > [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:768) > [junit] ) > [junit] junit.framework.AssertionFailedError: Cannot instantiate test case: testSimpleShort (java.lang.InstantiationException > [junit] at java.lang.reflect.Constructor.newInstance(Constructor.java:494) > [junit] ) > [junit] > Note that the others tests before run fine. Note that when using Maven all the tests run fine but only because the problematic test is *NOT* run. Does that means that it should not be run? (I used mvn ant:ant to generate an Ant buildfile as Gentoo packaging system does not support Maven yet). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.