Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] ClassFormatError with an abstract Aspect

Hi, and thanks for your answer,

I use AspectJ 1.6.1! :(

Bastien

Hi,

What version of AspectJ are you using? A bug or two related to that was fixed in AspectJ 1.6.1, see:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=223226
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237419

cheers,
Andy.

2008/10/15 Fifre <fifre.news@xxxxxxx <mailto:fifre.news@xxxxxxx>>

    Hello,

    I have a problem with the execution of my project, the console
    returns me this error :

    Exception in thread "main" java.lang.ClassFormatError: Duplicate
    method name&signature in class file
    fr/irit/etracetool/generic/trace/Tracer

    Tracer is an abstract aspect. Its signature is :
    public abstract aspect Tracer<TO extends TraceOperation>
    in package fr.irit.etracetool.generic.trace.

    The aspect concretely woven to my project is EMFTracer, and its
    signature is :
    public aspect EMFTracer extends Tracer<EMFTraceOperation>
    in package fr.irit.etracetool.emf.trace.

    Both aspects compile and my project compiles.
    In the aspectPath of my project, i have the
    fr.irit.etracetool.emf.trace project.
    In the BuildPath of my project, i have the
    fr.irit.etracetool.generic.trace project.

    When i run the project, the error is :

    Exception in thread "main" java.lang.ClassFormatError: Duplicate
    method name&signature in class file
    fr/irit/etracetool/generic/trace/Tracer
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at
    java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
      at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

    Any ideas ?

    Thanks,
    Bastien.

    _______________________________________________
    aspectj-users mailing list
    aspectj-users@xxxxxxxxxxx <mailto:aspectj-users@xxxxxxxxxxx>
    https://dev.eclipse.org/mailman/listinfo/aspectj-users


------------------------------------------------------------------------

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top