<font size=2 face="sans-serif">Hello weld<br>
<br>
I had a customer with an issue that I believe occurred because they annotated
a field with both @Inject and @EJB. This has given me two questions: <br>
<br>
1) Should weld throw an error when a field is annotated with both annotations?
<br>
<br>
2) If so is the correct way to add something like </font>
<br>
<br><font size=2 face="sans-serif">&nbsp;if (ij.getAnnotated().isAnnotationPresent(Inject.class)
&amp;&amp; ij.getAnnotated().isAnnotationPresent(EJB.class)) {</font>
<br><font size=2 face="sans-serif">&nbsp; &nbsp; throw ...</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">to Validator.validateInjectionPointForDefinitionErrors()</font>
<br>
<br><font size=2 face="sans-serif">If so I'm willing to create a pull request,
all I'd need is for you to tell me what the error message should say and
please point me to which test I should expand to cover this case. <br>
<br>
Regards<br>
Benjamin<br>
Unless stated otherwise above:<br>
IBM United Kingdom Limited - Registered in England and Wales with number
741598. <br>
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU<br>
</font>