Bug 86589 - Xlint should warn about set field if not defined
Summary: Xlint should warn about set field if not defined
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2.1   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 01:33 EST by Ron Bodkin CLA
Modified: 2005-02-25 01:33 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 Ron Bodkin CLA 2005-02-25 01:33:44 EST
Just as the compiler warns about undefined types, it should warn about 
undefined fields, e.g.,

public class UndefField {
    int a;

    private static aspect NoWarn {
        // compiler should warn for both pointcuts
        before() : get(int UndefField.b) {}

        before() : set(String UndefField.a) {}
    }
}