Bug 61408 - Incorrect parsing
Summary: Incorrect parsing
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.0 M9   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-07 11:43 EDT by Kelvin CLA
Modified: 2004-05-18 12:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kelvin CLA 2004-05-07 11:43:50 EDT
Test case :
public class ProfileDataRulerColumn {
    private class MouseHandler{
    };
    /** This column's parent ruler */
    protected Object _parent_ruler = null;
}

If you parse out this class, Javadoc is not be parsed. However, if you add a 
method in front of the field "_parent_ruler", and parse again, Javadoc will be 
parsed.
Comment 1 Frederic Fusier CLA 2004-05-10 06:50:35 EDT
Fixed.

This was a regression due to bug 40839 fix. Comment stack pointer was reset 
although the stack should be only flushed before empty class body or type 
declaration position.

[jdt-core-internal]
Changes made in consumeEmptyClassMemberDeclaration() and 
consumeEmptyTypeDeclaration() methods of Parser.
Test case added in NegativeTests
Comment 2 Olivier Thomann CLA 2004-05-18 12:50:02 EDT
Verified in 200405180816