Problem: Inner class Producer Method Injection fails
----------------------------------------------------
Key: OWB-238
URL: https://issues.apache.org/jira/browse/OWB-238
Project: OpenWebBeans
Issue Type: Bug
Components: Injection and Lookup
Affects Versions: M3
Environment: Windows. Eclipse running Jetty.
Reporter: Bill Wigger
Assignee: Gurkan Erdogdu
Priority: Minor
Fix For: M3
Problem: Inner class Producer Method Injection fails:
Injection:
Class Z:
@Produces @Named("ProMethodNamed1") String methodN1() {
return "Sucess from ProMethodNamed1";
}
Inject Point in class Y, using an inner class of Xsimple:
class Xsimple {
public @Inject @Named("ProMethodNamed1") String sInject;
public String getInner() {
String s = sInject;
return s;
}
}
public String getTestParameterized4() {
Xsimple inner = new Xsimple();
String y = inner.getInner();
if (y == null) {
return ("Error: Injected String was null");
}
if (y.length() < 1) {
return ("Error: Injected String was empty");
}
return y;
}
Actual Result when "getTestParameterized4" is called from a JSP:
"Error: Injected String was null"
Desired Result:
"Sucess from ProMethodNamed1"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.