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.
123456789101112 |
- import org.aspectj.testing.Tester;
- public class FinalConstructorParm {
- int i;
- public FinalConstructorParm(final int i) { // bad compiler error here - not in 10b1
- this.i = i;
- }
- public int lessOne() { return i-1;}
- public static void main(String[] args) {
- Tester.check(1== (new FinalConstructorParm(2)).lessOne(),
- "final failed");
- }
- }
|