summaryrefslogtreecommitdiffstats
path: root/tests/new/typeNameConflicts/Driver.java
blob: 95e403cb9ce9cc56ec53b5320f13181a912e0598 (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
26
27
28
29
30
package typeNameConflicts;

public class Driver {
    static int x;

    public Entry getEntry() {
        return new Integer();
    }

    public static void main(String[] args) {
        x = 2;
        Runnable r = new Runnable() { public void run() { System.out.println("running"); } };
        r.run();

        //java.lang.Integer i = new java.lang.Integer(2);
    }

    abstract class Entry {
    }

    class Integer extends Entry {
        int value;

        public void m() {
            value = 3;
            //java.lang.Integer i = new java.lang.Integer(2);
        }
    }
}