-
1. Re: Injection depends on visibility of class/methdod. A bug?
mkouba Nov 5, 2013 8:50 AM (in response to matinh)Hi Martin,
this should work and actually it works for me in Weld 2.x. Could you try to deploy your sample project in a Java EE 7 container which is using Weld 2 (e.g. WildFly8 or GlassFish4) so that we're sure this only affects Weld 1.1.x?
-
2. Re: Injection depends on visibility of class/methdod. A bug?
matinh Nov 5, 2013 9:31 AM (in response to mkouba)It seems wildfly requires JRE 7 but I currently don't have it at hand, so I can't test this.
-
3. Re: Injection depends on visibility of class/methdod. A bug?
mkouba Nov 5, 2013 9:38 AM (in response to matinh)Ok. Is the sample code available somewhere?
-
4. Re: Injection depends on visibility of class/methdod. A bug?
matinh Nov 5, 2013 9:47 AM (in response to mkouba)All relevant code is in the description. Packing it into a WAR and that WAR into an EAR should be sufficient.
Unfortunately I don't have a ZIP to provide as the bean is part of a project which also requires a database and a number of EJBs.
-
5. Re: Injection depends on visibility of class/methdod. A bug?
mkouba Nov 5, 2013 9:58 AM (in response to matinh)I see. I was thinking of a simple archive to verify it quickly. But you're right the sample is simple enough .
-
6. Re: Injection depends on visibility of class/methdod. A bug?
mkouba Nov 8, 2013 8:49 AM (in response to matinh)1 of 1 people found this helpfulFYI it's a bug - I've created https://issues.jboss.org/browse/WELD-1548.
-
7. Re: Injection depends on visibility of class/methdod. A bug?
matinh Nov 8, 2013 9:01 AM (in response to mkouba)Thanks Martin for your help and the JIRA entry!
I saw the "effected version" in JIRA is set to 2.1.0.Final. I don't know if 2.1 is effected, but I tested with 1.1.16 which is effected! So this should IMHO be updated.
- martin
-
8. Re: Injection depends on visibility of class/methdod. A bug?
mkouba Nov 8, 2013 9:06 AM (in response to matinh)Affects field is updated. We've run into the same issue with Weld 2.