Bug 218023 - No error on name conflict when injecting a private field in privileged aspect
Summary: No error on name conflict when injecting a private field in privileged aspect
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-06 11:28 EST by Dehua Zhang CLA
Modified: 2008-02-06 11:28 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 Dehua Zhang CLA 2008-02-06 11:28:17 EST
See the sample code below,

 public class OneType {
    private String r;
 }

 privileged aspect A { //notice "privileged"
    private int OneType.r; //no error reported by the compiler
 }

Since aspect A is declared as privileged, so it should have access to
the private filed "String OneType.r", therefore, the ITD "int OneType.r"
is conflict with the "String OneType.r"; however, I got no warning regarding this.