org.aspectj/tests/new/ArrayInc2CE.java
2002-12-16 18:51:06 +00:00

19 lines
537 B
Java

/**
* @testcase PR#715 PUREJAVA incrementing objects, arrays
*/
public class ArrayInc2CE {
public void testObjectIncrementingCE() {
boolean b;
int i = 0;
Object object = new Object();
int[] ra = new int[]{};
++ra; // CE prefix ++ cannot be applied to int[]
++object; // CE prefix ++ cannot be applied to Object
ra++; // CE postfix ++ cannot be applied to int[]
object++; // CE postfix ++ cannot be applied to Object
}
}