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.
12345678910111213141516171819202122 |
- // ITD of a method onto a generic inner type - working example
-
- interface I {
- interface J< T > {}
- }
-
- aspect Bang {
- public int I.J<T>.intro(T t) {return 42;}
- }
-
- class Impl implements I {
- class InnerImpl implements J<String> {
- }
- }
-
- public class ExampleA {
- public static void main(String []argv) {
- Impl i = new Impl();
- Impl.InnerImpl j = i.new InnerImpl();
- System.out.println(j.intro("foo"));
- }
- }
|