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

ProxyFactory fails with Java 8 interface static method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.2.1.Final
    • 2.2.0.SP1
    • None

      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

              mkouba@redhat.com Martin Kouba
              rhn-support-tkimura Takayoshi Kimura
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: