4.0.0 org.eclipse.jgit org.eclipse.jgit-parent 0.9.0-SNAPSHOT org.eclipse.jgit.iplog JGit - Eclipse IP Log Generator Creates an IP log for Git based projects. org.eclipse.jgit org.eclipse.jgit ${project.version} src/ . plugin.properties resources/ maven-jar-plugin ${bundle-manifest} g'>paramAnnotationBinding A seamless aspect-oriented extension to the Java programming language: https://github.com/eclipse-aspectj/aspectjwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/introductionPackage/one/Aspect.java
blob: 43ce36c20c7b490b213593f1ec09e34d9de18693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package one;

/** @testcase PR#548 introduced methods have incorrect package */
public aspect Aspect {
    public void C.foo() { // workaround: add qualification: one.C.foo
        /** @testcase PR#548 introduction method casting this to introduction type */
        ((C) this).protectedMethod();  // bad CE: Can't convert from two.C to one.C
        /** @testcase PR#548 introduction method accessing protected method */
        protectedMethod();             // bad CE: can't find any method with name: protectedMethod
        /** @testcase PR#548 introduction method accessing public method */
        publicMethod();                // bad CE: can't find any method with name: publicMethod
        /** @testcase PR#548 introduction method accessing default method */
        defaultMethod();               // bad CE: can't find any method with name: defaultMethod

        /** @testcase PR#548 introduction method accessing protected field */
        int i = protectedInt;          // bad CE: can't bind name: protectedInt
        /** @testcase PR#548 introduction method accessing private field */
        int j = publicInt;             // bad CE: can't bind name: publicInt
        /** @testcase PR#548 introduction method accessing default field */
        int k = defaultInt;            // bad CE: can't bind name: defaultInt
        int l = i * j * k;           
        //privateMethod();             // todo error case
        //int p = privateInt;          // todo error case
    }
}