|
|
|
|
Re: java.lang.AbstractMethodError when invoking introduced method [message #52957 is a reply to message #52853] |
Fri, 03 June 2005 18:46 |
Eclipse User |
|
|
|
Originally posted by: adrian_colyer.uk.ibm.com
Barry Kaplan wrote:
> However, when I run my tests, I'm getting AbstractMethodError when I
> attempt to invoke an introduced method. In the core project, ajdt
> clearly indicates that the methods have been introduced on the concrete
> class that I am calling.
> Any ideas how I can debug what is actually happening?
>
> thanks
>
> -barry
The fact that your tests compile happily indicates that in the woven
class files, the method is there as expected. Likewise the fact that you
say everything works when you create a project dependency (which places
the output folders of the library project into both the compile time
*and* runtime classpaths of the dependent project) indicate that things
are pretty healthy.
The javadoc for AbstractMethodError says "this error can only occur at
runtime if the definition of some class has incompatibly changed since
the currently executing method was last compiled".
My guess for what is happening is that you have the output folder of the
library project on your classpath for compilation, but that when you
run the tests this output folder is *not* on the runtime classpath.
Instead, at runtime you are picking up another (unwoven) version of the
library classes from somewhere else on your classpath.
Could this be the case?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04122 seconds