Mantis - Resin
Viewing Issue Advanced Details
4690 minor always 07-29-11 03:47 08-03-11 13:06
mnsh  
ferg  
normal  
closed 4.0.20  
fixed  
none    
none 4.0.21  
0004690: @Inject into a tag handler breaks jsp compilation
Given a taglib containing:

public class SomeTag extends TagSupport {
  @Inject private Whatever whatever;
  //...
}

A JSP page using SomeTag will now fail to compile with the following error:
.../_page__jsp.java:123: _jsp_inject__jsp_SomeTag_5 is already defined in .../_page__jsp

Looking at _page__jsp.java, there are simply two of these:

static com.caucho.config.inject.InjectManager.ReferenceFactory _jsp_inject__jsp_SomeTag_5
    = com.caucho.jsp.JspUtil.getInjectFactory(somepackage.SomeTag.class);

Notes
(0005419)
ferg   
08-03-11 13:06   
jsp/18z3