Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
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");
- }
- }
|