jakartaee / expression-language

Jakarta Expression Language
https://eclipse.org/ee4j/el
Other
67 stars 49 forks source link

Dependency to the java.desktop JPMS module #47

Closed glassfishrobot closed 1 year ago

glassfishrobot commented 6 years ago

Hi,

So it's probably something that cannot be fixed easily but I thought you should be made aware of it.

The ELResolver abstract class depends on java.beans.FeatureDescriptor (and implementations are using Introspector#getBeanInfo()) and unfortunately the java.beans package is part of the java.desktop module.

Thus, if you use javax.el in a modularized environment, you will need the java.desktop module which is very unfortunate.

In the long run, either java.beans should be extracted from the java.desktop module or we should try to remove the dependency to it.

glassfishrobot commented 6 years ago
markt-asf commented 2 years ago

My research so far has not found any significant uses of FeatureDescriptor. Therefore, methods referencing FeatureDescriptor will be deprecated for removal without replacement in 5.0 with the intention of removing them in 6.0. Should a use case these emerge later, we always have the option to re-evaluate this plan any time before the 6.0 release which I am currently expecting to be aligned with Jakarta EE 11.

markt-asf commented 2 years ago

Complete all we can for now. Remaining work needs to wait for Jakarta EE 11.

markt-asf commented 1 year ago

Note that there will also need to be some internal work to the BeanELResolver to completely remove this dependency.