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.

UnambiguousClassReference3CP.java 432B

123456789101112131415
  1. import java.sql.Array;
  2. import org.aspectj.testing.Tester;
  3. public class UnambiguousClassReference3CP {
  4. /** @testcase PR#701 PUREJAVA no CE for unambiguous reference
  5. * see also testcase PR#631 */
  6. public static void main(String[] args) {
  7. int[] gh = new int[5];
  8. int len = java.lang.reflect.Array.getLength(gh); // not ambiguous
  9. Tester.check(5==len, "Array.getLength failed: " + len);
  10. }
  11. }