Bug 17562

Summary: Race condition on startup leads to 2 JavaModel instances
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
stack trace none

Description Dani Megert CLA 2002-05-24 03:31:11 EDT
Build F1
Indexer and main thread can get different Java Model instances
See attached stack traces.

This can lead to a various number of bugs in the UI e.g. Java working sets don't
work because the elements are no longer equal (different Java Model instances as
parent).
Comment 1 Dani Megert CLA 2002-05-24 03:31:36 EDT
Created attachment 1025 [details]
stack trace
Comment 2 Philipe Mulet CLA 2002-05-24 07:27:20 EDT
JavaModel handles are indeed supposed to be unique (for comparison purpose).
Fixed by ensuring only one handle can ever be allocated.
Comment 3 Philipe Mulet CLA 2002-05-24 13:12:45 EDT
Fixed
Comment 4 Jerome Lanneluc CLA 2002-06-03 08:44:20 EDT
Verified