Nelze vybrat více než 25 témat
Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
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");
- }
- }
|