-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update beans.xml files to version 3.0 #222
Comments
Should there be tests for all previous versions as well as the latest one? They should all work still. |
Section 12.1 of the spec (Bean Archives) says
Therefore, in order to be spec compliant, a beans.xml with version 1.1. or 2.0 should also work. It is implied that a beans.xml with version 1.0 should also work in general. |
Yes, it should work with older versions as well (which is basically why all of TCKs pass with current implementations in the first place). |
@manovotn are you aware of any plans to update ShrinkWrap Descriptors to support EE9? |
@tevans78 this one https://github.com/shrinkwrap/descriptors? No, I am not. And looking at the commits, it's been dead for some time now. That being said, if there were contributions we could revive it (I suppose I could get to someone who has commit rights). But I have no idea how much work would it be to update it; it is a lot of descriptors and CDI really only cares about a fraction and I have no idea if there are any other parties that would be interested in having this updated. Alternatively we could either rewrite TCK tests to use a pre-created |
I am a bit confused on which version of beans.xml the cdi tck should use. Should we use the latest beans.xml and then which tests should use old version of beans.xml? Personally, I think the spec should say beans.xml version 3.0 instead of saying 1.1 or later as that one still refer to javaee etc. I don't get why it should work with beans.xml version 1.0 either. |
Most tests should use the latest version but there should be some coverage for older versions as well. Otherwise, the wording of the spec should be changed/clarified. |
After some more probing I found out that the shrinkwrap descriptors project would probably be a lot of work given what we need and that we don't really have any other interested party. OTOH, I found that Weld in some older version already implemented a I'll check if this would be a viable solution tomorrow. |
I have a WIP branch here - https://github.com/manovotn/cdi-tck/commits/issue222 However, there will still be 30+ occurrences of Shrinkwrap descriptors for other than |
The CDI TCK currently uses the Shrinkwrap API to construct its test applications, including dynamic generation of metadata files like beans.xml. This results in all of the beans.xml files in the TCK being stuck at version 1.1:
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bean-discovery-mode="all" version="1.1" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"/>
With the release of Jakarta EE 9 and the switch to the jakarta namespace, these should all be updated to version 3.0.
The text was updated successfully, but these errors were encountered: