mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
15 lines
499 B
Java
15 lines
499 B
Java
|
import java.sql.Array;
|
||
|
import java.lang.reflect.Array; // ERR: importing same name different types
|
||
|
|
||
|
public class AmbiguousClassReference2CE {
|
||
|
|
||
|
/** @testcase PR#701 PUREJAVA CE for ambiguous type reference (imports)
|
||
|
* see also testcase PR#631 */
|
||
|
public static void main(String[] args) {
|
||
|
int[] gh = new int[5];
|
||
|
Array.getLength(gh); // bug: expect ~ambiguous~ not "no method getLength..."
|
||
|
throw new Error("Expecting compiler error, not compile/run");
|
||
|
}
|
||
|
}
|
||
|
|