Search code examples
javarcpe4java-11

PostConstruct no longer available


i used the current versions of Eclipse and Java. I try to moved my RCP application from Java 8 to Java 11. My applications runs but now i have functional issues because i have to remove the @PostConstruct annotation from my code.

Exist any other alternative for this injection annotation?


Solution

  • For Eclipse e4 the PostConstruct annotation is in the javax.annotation plug-in. Add that as a dependency to your plug-ins and continue to use PostConstruct.