jakartaee / cdi

CDI specification
Apache License 2.0
214 stars 78 forks source link

Inconsistency in package imports for EL #807

Open Azquelt opened 7 months ago

Azquelt commented 7 months ago

Describe the bug

For a package import, the version is a range and so 5.0 here means "5.0 or above" so both ranges do allow version 6.0 to be used.

Expected behavior I had expected the two jars to match. There may be some reason I'm not aware of for doing it this way, or it could be an oversight.

Ladicek commented 7 months ago

This looks like an oversight to me.

manovotn commented 7 months ago

Definitely an oversight, both JARs need that dep for the exact same method on BM (which we kept in CDI API because of backwards compatibility) so there is no reason for them to differentiate.