Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-898

ClassFormatError in ASM engine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.0, 1.2.1
    • 1.2.1
    • Core

    Description

      It is possible for OpenWebBeans to throw a ClassFormatError while constructing an instance of a class that "overrides" a package private method of a super class with an own package private method. Technically, the methods are not overriden, which leads to two methods with the same signature – therefore the FormatError.

      de.cewecolor.cdi.blow.sub.SuperClass#setValue(String)
      de.cewecolor.cdi.blow.SubClass#setValue(String) extends SuperClass

      BeanManager#getReference(SubClass.class) will throw an Error.

      Please see the attached example project, it's a very small example triggering the issue (standalone container).

      I assume that this problem is related to the switch to ASM. For one, OpenWebBeans 1.1.8 works fine and it can be seen here too: http://issues.gradle.org//browse/GRADLE-2695
      Tested also with 1.2.1-SNAPSHOT which uses ASM 4, still the same issue.

      Attachments

        1. cdi-blow.zip
          5 kB
          Tobias Stoeckmann

        Activity

          People

            struberg Mark Struberg
            tstoeckmann Tobias Stoeckmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: