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

weld-core has dependency with java.desktop module when using JPMS

    XMLWordPrintable

Details

    Description

      I found a point of improvement when using Weld in an application using the new Java module system.

      The core depends on the java.beans.Introspector.decaptalize() static method which is causing the dependency on whole java.desktop module (~12m of size) when loading a simple hello world application using Weld.

      In order to fix that, a simple patch removing the dependency of that static method, either reimplementing it or using a third party library that contains the same feature.

      Class: org/jboss/weld/util/reflection/Reflections.java

      I also noticed that Probe module depends on Bean Introspector, but it's non core (to be used by developers only). However, it can also be fixed using a lite Java Beans introspection library created to completely remove java.desktop dependency: https://github.com/panga/java-beans-lite

      Attachments

        Activity

          People

            Unassigned Unassigned
            pangalz@gmail.com Leonardo Zanivan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: