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

improve support for Java 9++ hacks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.21
    • 2.0.22
    • Core
    • None

    Description

      With Java > 11 sun.misc.Unsafe defineClass finally got removed and setAccessible(true) for java.* classes is not allowed anymore.

      There is a solution via ClassLoaderProxyService as DefiningClassService (see OWB-1325) but this has the downside that package scoped methods are not accessible. A call to a package scope method of a NormalScope proxy thus cannot see the method in the proxy class and thus coerces to the empty original parent class. As this instance is not initialised all values are empty, resulting in NPE and zero values etc.

      Attachments

        Activity

          People

            struberg Mark Struberg
            struberg Mark Struberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: