Java Reflection problem in Eclipse? [message #1273091] |
Wed, 19 March 2014 09:39  |
Eclipse User |
|
|
|
I'm working on Eclipse plugin development. At one place, I need to load classes from external jar and read its methods annotations. Unfortunately, when I call method.isAnnotationPresent(MyAnnotaion.class), it return false all the time (I run/debug the plugin from Eclipse). If I run the snippet from JUnit (from Eclipse), it works fine.
Any suggestions?
|
|
|
|
Re: Java Reflection problem in Eclipse? [message #1273127 is a reply to message #1273091] |
Wed, 19 March 2014 10:55  |
Eclipse User |
|
|
|
Artem,
What do you mean exactly by "load classes from external jar"? Is that
jar a library specified in the MANIFEST.MF of a bundle?
On 19/03/2014 7:25 AM, Artem Popenkov wrote:
> I'm working on Eclipse plugin development. At one place, I need to
> load classes from external jar and read its methods annotations.
> Unfortunately, when I call
> method.isAnnotationPresent(MyAnnotaion.class), it return false all the
> time (I run/debug the plugin from Eclipse). If I run the snippet from
> JUnit (from Eclipse), it works fine.
> Any suggestions?
|
|
|
Powered by
FUDForum. Page generated in 0.06042 seconds