Darksmilie
Darksmilie

Reputation: 201

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?

Upvotes: 1

Views: 600

Answers (1)

greg-449
greg-449

Reputation: 111142

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.

Upvotes: 2

Related Questions