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.

AmbiguousClassReference.java 398B

123456789101112131415
  1. import java.sql.*;
  2. import java.lang.reflect.*;
  3. /** support mail from Dave Trombley */
  4. public class AmbiguousClassReference {
  5. /** @testcase PR#631 PUREJAVA expecting CE for ambiguous reference */
  6. public static void main(String[] args) {
  7. int[] gh;
  8. gh = new int[5];
  9. Array.getLength(gh);
  10. throw new Error("Expecting compiler error, not compile/run");
  11. }
  12. }