List Info

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




Any ideas on why adding a single line of code would cause this error
user name
2006-03-31 19:46:00
/**
     * Rigourous Test 
     */
    public void testApp()
    {
       System.out.println("In AppTest
testApp()");
        assertTrue( true );
    }




"Wayne Fay" <waynefaygmail.com> 
03/31/2006 02:28 PM
Please respond to
"Maven Users List" <usersmaven.apache.org>


To
"Maven Users List" <usersmaven.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, MTedescoevergreeninvestments.com
<MTedescoevergreeninvestments.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: MTedescoevergreeninvestments.com
> P: 617-210-3515
> C: 978-590-8022
> ----------------------------------------------
>


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )