You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by MT...@EvergreenInvestments.com on 2006/03/31 21:46:00 UTC

Re: Any ideas on why adding a single line of code would cause this error

/**
     * Rigourous Test :-)
     */
    public void testApp()
    {
       System.out.println("In AppTest testApp()");
        assertTrue( true );
    }




"Wayne Fay" <wa...@gmail.com> 
03/31/2006 02:28 PM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
"Maven Users List" <us...@maven.apache.org>
cc

Subject
Re: Any ideas on why adding a single line of code would cause this error






What's the "single line of code"?? Can you send it?

Wayne

On 3/31/06, MTedesco@evergreeninvestments.com
<MT...@evergreeninvestments.com> wrote:
> Hi,
>   I've added a single line of code to the maven test app (my-app) and
> received the below error message.
>
> Any ideas?
>
> C:\evergreen\MavenMy-App>mvn test
> [INFO] Scanning for projects...
> [INFO]
> 
----------------------------------------------------------------------------
> [INFO] Building Maven Quick Start Archetype
> [INFO]    task-segment: [test]
> [INFO]
> 
----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] Nothing to compile - all classes are up to date
> [INFO] [surefire:test]
> [INFO] Setting reports dir: C:\MavenMy-App\target/surefire-reports
>
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> java.lang.ClassFormatError: com/mycompany/app/AppTest (Illegal Field 
name
> "has inconsistent hierarchy")
>        at java.lang.ClassLoader.defineClass0(Native Method)
>        at java.lang.ClassLoader.defineClass(Unknown Source)
>        at java.security.SecureClassLoader.defineClass(Unknown Source)
>
> ----------------------------------------------
> Michael Tedesco
> Evergreen Investments - Technology
> Email: MTedesco@evergreeninvestments.com
> P: 617-210-3515
> C: 978-590-8022
> ----------------------------------------------
>