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.

ArrayFieldDeclaration.java 403B

123456789101112131415161718
  1. import org.aspectj.testing.Tester;
  2. import java.util.*;
  3. /** @testcase PR#829 declare array field using postfix */
  4. public class ArrayFieldDeclaration {
  5. public static void main(String[] args) {
  6. //Tester.check(null != new C().f[0], "null != new C().f[0]");
  7. }
  8. }
  9. class C {
  10. }
  11. aspect A {
  12. Object C.f[] = new Object[] { "hello" }; //CE postfix [] syntax is illegal in inter-type decs
  13. }