дзеркало
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-27 05:54:38 +02:00
13 рядки
393 B
Java
13 рядки
393 B
Java
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");
|
|
}
|
|
}
|