This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 163576

Summary: Annotations class should be more thread safe
Product: editor Reporter: Sergey Petrov <sj-nb>
Component: Hints & AnnotationsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED WONTFIX    
Severity: blocker CC: mmirilovic
Priority: P3 Keywords: THREAD
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Sergey Petrov 2009-04-24 11:59:30 UTC
for example see issue 161790 where between two calls annotations are changed and it was the reason for null pointer,
similar effect may be inside unsynchronized method like getPasiveAnnotations where initially annotations cound is
verified and later annotations list is created and returned. if any other thread change annotations between getCount()
and getPassive() it may cause for example index out of bounds in later logic or creation of return array with -1 size or
just incorrect/unexpected results.
Comment 1 Marian Mirilovic 2012-10-18 14:36:26 UTC
We haven't fixed it yet, so I do not expect we will do so in next two releases.