aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/AmbiguousClassReference.java
blob: 5b34f57fe5dabe0c8f0cee0e95116036568fed9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import java.sql.*;
import java.lang.reflect.*;

/** support mail from Dave Trombley */
public class AmbiguousClassReference {

    /** @testcase PR#631 PUREJAVA expecting CE for ambiguous reference */
    public static void main(String[] args) {
        int[] gh;
        gh = new int[5];
        Array.getLength(gh);
        throw new Error("Expecting compiler error, not compile/run");
    }
}