Community
Participate
Working Groups
Build Identifier: 2.1.0 Initially discovered if annotation processing is enabled in netbeans, but also separate test case is available. The issue have a workaround patch already discovered. OOM cause hangs. Reproducible: Always Steps to Reproduce: Just run attached sample application.
Created attachment 176805 [details] sample exception
Just found I can't attach sample application because of attachment size limit. I can provide it on demand by email or some file hosting service.
The issue is reported against jvm, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6977402 But have clear workaround on eclipselink side and can be fixed this way, will attach proposed patch. Also you can see corresponding netbeans issue http://netbeans.org/bugzilla/show_bug.cgi?id=187653
Created attachment 176879 [details] proposed patch
The MetadataMirrorFactory is already a static in the 2.1 stream. Unless I am missing something, the proposed patch will not patch anything? I checked our 2.0 and 2.2 streams and same thing there, that is: protected static MetadataMirrorFactory factory;
occasionally patch is created in reverse order.
Unfortunately, right now we do have a dependency on the static (at least within Eclipse) where we use it as our 'transactional cache', that is, to remember what has been done from one compile round to another. I can re-investigate this however and see if I can come up with another solution.
We should finish triaging this for 2.2 and set target based on the result of the triage.
Created attachment 181125 [details] Proposed changes
Bug 322921 - OutOfMemory in annotation processor Reviewed by: Tom Ware Test manually and through our build scripts. Also verified by reporter.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink