Hi David
Those tests are passed with our Tomcat7 integration.
Look at BeansDeployer # defineManagedBean
if(WebBeansUtil.supportsJavaEeComponentInjections(clazz)){
......
//Checks that not contains @Inject InjectionPoint
OWBInjector.checkInjectionPointForInjectInjectionPoint(clazz);
}
If you look at WebBeansUtil # supportsJavaEeComponentInjections method, it
checks that whether the given class is a Java EE component or not. This
method checks condition with looking registered OpenWebBeans plugins.
Therefore,
Geronimo plugin must implement "public boolean
supportsJavaEeComponentInjections(Class)".
Look at "webbeans-tomcat7" for an example.
Therefore issue is not a bug. I will change its status as "Wont fix."
Gurkan
----- Original Message ----
From: David Jencks (JIRA) <[email protected]>
To: [email protected]
Sent: Fri, October 29, 2010 3:41:19 AM
Subject: [jira] Created: (OWB-487) Section 5.5.7 restrictions on injecting
InjectionPoint not enforced
Section 5.5.7 restrictions on injecting InjectionPoint not enforced
-------------------------------------------------------------------
Key: OWB-487
URL: https://issues.apache.org/jira/browse/OWB-487
Project: OpenWebBeans
Issue Type: Bug
Components: Core
Affects Versions: 1.1.0
Reporter: David Jencks
Assignee: Gurkan Erdogdu
Section 5.5.7 ends with a couple restrictions on injecting InjectionPoint.
Theres a tck test for one of them, an InjectionPoint in a servlet is not OK.
text:
f a bean that declares any scope other than @Dependent has an injection point
of
type InjectionPoint and qualifier @Default, the container automatically detects
the problem and treats it as a definition error.
If a Java EE component class supporting injection that is not a bean has an
injection point of type InjectionPoint and qualifier @Default, the container
automatically detects the problem and treats it as a definition error.
test:
org.jboss.jsr299.tck.tests.lookup.injectionpoint.broken.not.bean.InjectionPointTest
org.jboss.jsr299.tck.tests.lookup.injectionpoint.broken.not.bean.TestServlet_Broken
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.