3 Replies Latest reply on Nov 22, 2004 4:13 PM by Bill Burke

    What is the Javassist version used by JBoss AOP ?

    Alain Gilbert Newbie

      I'm having a NullPointerException when using this annotation:

      public interface OneToMany
      {
       Class targetClass();
      }

      on this method:
      /**
       * @@OneToMany (targetClass=CarBean)
       */
      public List getCars()
      {
       return cars;
      }

      by calling this code:
      AnnotationElement.getAnyAnnotation(method, klass);

      I'd like to investigate it further but the Javassist 3.0RC1 source code does not match the version included by JBoss AOP 1.0.0.

      What is the Javassist version used by JBoss AOP ?

        • 1. Re: What is the Javassist version used by JBoss AOP ?
          Bill Burke Master

          It is a snapshot...apologies, this is my bad. I was supposed to at least tag Javassist's CVS when I released the last AOP, but I didn't.

          FYI, you have to use fully-qualified class names with the annotation compiler when referencing Enums or classes.

          Bill

          • 2. 3851802
            Alain Gilbert Newbie

            OK.

            My problem was that the klass parameter was referring to another class instead of the annotation class. I have no NPE anymore.

            About the fully-qualified names: Will this limitation be lifted in a future release ? As a programmer I would expect AOP to use the same namespace rules as the Java compiler.

            Al

            • 3. 3851736
              Bill Burke Master

              I don't think this will ever be added. Its not on our TODO list. By the time we'd have the cycles to implement this, 5.0 may already be widely adopted, then again, maybe not...

              If you were interested in implementing this, please do. I would grant you CVS access if you did implement it.

              Bill