Bug 75632 - Infinite loop in DefaultCommentMapper#storeLeadingComments
Summary: Infinite loop in DefaultCommentMapper#storeLeadingComments
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 75646 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-05 07:38 EDT by Jerome Lanneluc CLA
Modified: 2004-11-02 12:50 EST (History)
1 user (show)

See Also:


Attachments
File that was being reconciled (44.15 KB, application/octet-stream)
2004-10-05 07:38 EDT, Jerome Lanneluc CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2004-10-05 07:38:05 EDT
I20040930 + latest JDT Core

Got an inifinite loop in DefaultCommentMapper#storeLeadingComments at line 321
while reconciling the attached file. The scanner's current position was after
the source end.
Comment 1 Jerome Lanneluc CLA 2004-10-05 07:38:44 EDT
Created attachment 15000 [details]
File that was being reconciled
Comment 2 Frederic Fusier CLA 2004-10-05 07:46:53 EDT
Problem comes from a wrong start position of comment stored in comments list.
I'll investigate...
Comment 3 Frederic Fusier CLA 2004-10-05 09:29:16 EDT
Seem to be a desynchronization during reconcile between comments list stored in
CompilationUnit and source of unit CompilationResult.
Don't know yet how this can happen!?
We're trying to add some trace...
Comment 4 Frederic Fusier CLA 2004-10-06 07:03:23 EDT
Not easily reproduceable...
By the way, I'll add a protection to avoid this kind of problem in the future.

Change done in DefaultCommentMapper.storeLeadingComments(ASTNode,int).
Comment 5 Frederic Fusier CLA 2004-10-06 15:51:24 EDT
*** Bug 75646 has been marked as a duplicate of this bug. ***
Comment 6 David Audel CLA 2004-11-02 12:50:51 EST
Verified for 3.1M3 with build I20041101