Bug 68006 - [1.5] Invalid modifier after parse
Summary: [1.5] Invalid modifier after parse
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-21 11:08 EDT by Philipe Mulet CLA
Modified: 2005-01-11 11:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2004-06-21 11:08:04 EDT
Cheetah

The following code issues an error against modifier for argument 'm'.

import java.util.Map;
public class X {
    void foo(Map<? super Object, ? extends String> m){
    }
}
Comment 1 Philipe Mulet CLA 2004-06-21 11:09:30 EDT
Parser incorrectly sets a 'public private protected' modifier onto 
argument 'm'.
Comment 2 Philipe Mulet CLA 2004-06-21 11:10:31 EDT
Problem disappears if removing any of the wildcards in the signature of 
argument type.
Comment 3 David Audel CLA 2004-06-21 13:28:52 EDT
super location was not remove from the int stack inside 
Parser#consumeWildcardBoundsSuper()

Fixed and test added