Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8548

Annotations on overloaded methods are sometimes mixed up

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 11.0.0.CR1, 10.x.x TBD
    • 10.1.0.Final, 11.0.0.Beta1
    • EJB
    • None

      If a stateless session bean contains overloaded methods the annotations on these methods are sometimes mixed up. This happens for example, if two methods with the same name, the same return type and the same number of arguments exists. If both methods have different annotations or annotation values the values of the 'first' method are used.

      To make things more complicated, the 'first' method depends on the JVM in use.

      The bug lives in the class org.jboss.as.ejb3.deployment.ApplicableMethodInformation. I have already create a pull request to fix the issue: https://github.com/wildfly/wildfly/pull/9922

              frickeo Olaf Fricke (Inactive)
              frickeo Olaf Fricke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: