summaryrefslogtreecommitdiffstats
path: root/tests/new/UnambiguousClassReference3CP.java
blob: f3fc2dac8b6ea9783da3a33ea4cadd79f5e3ed37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.sql.Array;

import org.aspectj.testing.Tester;

public class UnambiguousClassReference3CP {

    /** @testcase PR#701 PUREJAVA no CE for unambiguous reference 
     *  see also testcase PR#631 */
    public static void main(String[] args) {
        int[] gh = new int[5];
        int len = java.lang.reflect.Array.getLength(gh); // not ambiguous
        Tester.check(5==len, "Array.getLength failed: " + len);
    }
}