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ů.

LocalInterfaceCE.java 522B

123456789101112131415161718
  1. /** @testcase PR721 interface declaration not permitted in local method scope */
  2. public class LocalInterfaceCE {
  3. void method() {
  4. interface Local {} // CE 5 interface not allowed here
  5. }
  6. static {
  7. interface Local {} // CE 8 interface not allowed here
  8. }
  9. static void staticMethod() {
  10. interface Local {} // CE 11 interface not allowed here
  11. }
  12. class Inner {
  13. void method() {
  14. interface Local {} // CE 15 interface not allowed here
  15. }
  16. }
  17. }