Duplicate javax.annotation packages and Java 9
by John Ament
Hey all
Not sure where else to turn 😊
I'm trying to start testing my apps on Java 9, I believe Java 9 kicks back the javax.annotation dependency that CDI declares due to a package collision with the built in JDK's javax.annotation package<https://docs.oracle.com/javase/9/docs/api/javax/annotation/package-summar...>. The errors I get are due to missing javax/annotation/Priority. I'm wondering if anyone else has tried this, and if there's a clean work around?
John
________________________________
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this message, and destroy all physical and electronic copies. Thank you.
6Â years, 12Â months
[JBoss JIRA] (CDI-545) Clarify that observers can't be remote business method
by Martin Kouba (JIRA)
[ https://issues.jboss.org/browse/CDI-545?page=com.atlassian.jira.plugin.sy... ]
Martin Kouba commented on CDI-545:
----------------------------------
http://lists.jboss.org/pipermail/cdi-dev/2015-July/006993.html
> Clarify that observers can't be remote business method
> -------------------------------------------------------
>
> Key: CDI-545
> URL: https://issues.jboss.org/browse/CDI-545
> Project: CDI Specification Issues
> Issue Type: Clarification
> Components: Java EE integration
> Affects Versions: 1.2.Final
> Reporter: Antoine Sabot-Durand
> Fix For: 2.0 .Final
>
>
> In section 10.4 of 1.2 spec we have:
> {quote}
> If the bean is a session bean, the observer method must be either a business method of the EJB or a static method of the bean class.
> {quote}
> in 10.4.2 we also have:
> {quote}
> If a non-static method of a session bean class has a parameter annotated {{@Observes}}, and the method is not a business method of the EJB, the container automatically detects the problem and treats it as a definition error.
> {quote}
> This 2 assertions don't prevent an observer to be a business method of a remote client of an EJB. We should be more precise here and forbid this scenario.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
7Â years, 1Â month