Tapestry 5
  1. Tapestry 5
  2. TAP5-1233

Live reloading of service implementation classes causes IllegalAccessError if the class contains protected or package private methods

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.1
    • Component/s: tapestry-ioc
    • Labels:
      None

      Description

      This can be a problem when upgrading apps to 5.2.0.

        Issue Links

          Activity

          Hide
          Antal van Kalleveen added a comment -

          I've found that there is still an issue that is closely related to this one:

          Detailed info and code to reproduce can be found here: http://tapestry.1045711.n5.nabble.com/TAP5-1233-re-open-java-lang-IllegalAccessError-td4864790.html

          Still could be a 'feature' but it is not clearly documented , otherwise i think its a bug.

          Show
          Antal van Kalleveen added a comment - I've found that there is still an issue that is closely related to this one: Detailed info and code to reproduce can be found here: http://tapestry.1045711.n5.nabble.com/TAP5-1233-re-open-java-lang-IllegalAccessError-td4864790.html Still could be a 'feature' but it is not clearly documented , otherwise i think its a bug.
          Hide
          Howard M. Lewis Ship added a comment -

          The "class loading" umbrella has been extended in such a way that inner classes and other classes within the same package should now be loaded correctly, with the same class loader. This issue can be re-opened (or cloned, after 5.2.1 is released) if new use cases come up.

          Show
          Howard M. Lewis Ship added a comment - The "class loading" umbrella has been extended in such a way that inner classes and other classes within the same package should now be loaded correctly, with the same class loader. This issue can be re-opened (or cloned, after 5.2.1 is released) if new use cases come up.
          Hide
          Peter Stavrinides added a comment -

          Tapestry should not attempt to reload these protected or package private classes

          Show
          Peter Stavrinides added a comment - Tapestry should not attempt to reload these protected or package private classes
          Hide
          Igor Drobiazko added a comment - - edited

          There are even more problems: if you have an abstract service class containing protected or package private abstract methods, your app will fail with a java.lang.AbstractMethodError.

          Show
          Igor Drobiazko added a comment - - edited There are even more problems: if you have an abstract service class containing protected or package private abstract methods, your app will fail with a java.lang.AbstractMethodError.

            People

            • Assignee:
              Howard M. Lewis Ship
              Reporter:
              Igor Drobiazko
            • Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development