You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AmbiguousClassReference2CE.java 499B

1234567891011121314
  1. import java.sql.Array;
  2. import java.lang.reflect.Array; // ERR: importing same name different types
  3. public class AmbiguousClassReference2CE {
  4. /** @testcase PR#701 PUREJAVA CE for ambiguous type reference (imports)
  5. * see also testcase PR#631 */
  6. public static void main(String[] args) {
  7. int[] gh = new int[5];
  8. Array.getLength(gh); // bug: expect ~ambiguous~ not "no method getLength..."
  9. throw new Error("Expecting compiler error, not compile/run");
  10. }
  11. }