Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1664

ProxyFactory fails with Java 8 interface static method

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.2.0.SP1
    • Fix Version/s: 2.2.1.Final
    • Component/s: None
    • Labels:

      Description

      When generating a proxy, ProxyFactory excludes static methods on Classes but not on Interfaces. Java 8 allows us to have static methods on Interface and Weld fails to create a proxy when we have it:

      javax.servlet.ServletException: WELD-001524: Unable to load proxy class for bean Managed Bean [class sample.BackingBean] with qualifiers [@Default @Any @Named] with class class sample. BackingBean using classloader ModuleClassLoader for Module "deployment.JavaEE7Test.war:main" from Service Module Loader
      

      Thanks for Shinsuke Oda-san for detailed blog about this issue.

      http://odashinsuke.hatenablog.com/entry/2014/04/24/203850
      http://odashinsuke.hatenablog.com/entry/2014/04/25/194216

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                tkimura Takayoshi Kimura
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: