Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » e4 annotations disappearing (Syntax is a monda)
e4 annotations disappearing (Syntax is a monda) [message #891876] Tue, 26 June 2012 12:04 Go to next message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
Hello, Moin!

I have created an addon for my e4 application. But the hookListeners
(@PostConstruct'd) method is never called. I found that the cause is
that the class's methods's (hookListeners) annotations-hashtable
calculates the wrong hash to retrieve the annotation.

I'm using the 32-bit JDK 7 and Eclipse Juno.

Any help would be greatly appreciated.
Re: e4 annotations disappearing (Syntax is a monda) [message #891891 is a reply to message #891876] Tue, 26 June 2012 12:46 Go to previous messageGo to next message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
Yes, I found the solution myself. It's been the usual suspect: the class
(@PostConstruct) was declared twice (two different versions)
what explains the different hash values. I just changed from
Require-Bundle (javax.annotation) to Import-Package (javax.annotation)!

So from now on I think that these problems might appear for some reason..


Am 26.06.2012 14:04, schrieb Oliver Koch:
> Hello, Moin!
>
> I have created an addon for my e4 application. But the hookListeners
> (@PostConstruct'd) method is never called. I found that the cause is
> that the class's methods's (hookListeners) annotations-hashtable
> calculates the wrong hash to retrieve the annotation.
>
> I'm using the 32-bit JDK 7 and Eclipse Juno.
>
> Any help would be greatly appreciated.
Re: e4 annotations disappearing (Syntax is a monda) [message #891892 is a reply to message #891891] Tue, 26 June 2012 12:53 Go to previous messageGo to next message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 242
Registered: July 2009
Senior Member
Where are the different definitions from? (Ctrl-Shift-T will show you.)
Re: e4 annotations disappearing (Syntax is a monda) [message #891913 is a reply to message #891892] Tue, 26 June 2012 14:21 Go to previous message
Oliver Koch is currently offline Oliver KochFriend
Messages: 40
Registered: June 2012
Member
There is a JDK-Class and a class from javax.annotation bundle.

Am 26.06.2012 14:53, schrieb Brian de Alwis:
> Where are the different definitions from? (Ctrl-Shift-T will show you.)
Previous Topic:EModelService findElement()
Next Topic:e4 Target Platform
Goto Forum:
  


Current Time: Fri Apr 19 18:56:57 GMT 2024

Powered by FUDForum. Page generated in 0.03623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top