Community
Participate
Working Groups
Build Identifier: Build ID: 20110124_1224 The annotation @PostConstruct allows any visibility for the marked method. However, if set to private, Eclipse emits a "never used locally" warning, although the method will be invoked because of the annotation. I think this warning should be disabled for standard annotations. Reproducible: Always
Could be a nice addition indeed.
What other annotations beside PostConstruct would you like to see supported ?
Would also be nice to support @PreDestroy.
Ok, these are the two annotations part of the JDK that I also found on my side.
Created attachment 202153 [details] Proposed fix I'll add regression test once this is reviewed.
Srikanth, please review to make sure I didn't forget any location where standard annotations must be handled.
Released for 3.8M2. Regression tests will be added once the code is reviewed.
Verified for 3.8M2 using build id: I20110912-0800.