1 Reply Latest reply on Mar 18, 2009 7:19 AM by Francois Armand

    Method Paramater annotation not seen on Scala class - but vi

    Francois Armand Newbie


      I'm trying to use Tapestry 5.0.18 with Scala (2?7?3 and 2.8.0 nightly). It uses method parameter annotations that seem to not be found by Javassist (tested with 3.8, 3.9 and 3.10 GA).

      The annotation is a java annotation declared as this :
      @Target({PARAMETER, FIELD})
      public @interface InjectService
      String value();

      And is used like :
      public static void contributeFooService(
      OrderedConfiguration conf,
      @InjectService("foo1") FooService foo1,
      @InjectService("foo2") FooService foo2
      ) { .... }

      As the problem appear with Scala file, I'm not sur that it's only a javassist problem, but the symptom are :

      - in Java, I saw annotation both woth Javassist CtBehavior#getAvailableParameterAnnotations() and with Java reflexion API java.lang.reflect.Method#getAvailableAnnotations

      - in Scala, I saw the annotation only with the java reflexion API

      I don't know exactly what I can provides to help here.
      Any help would be appreciated,
      Francois Armand