Mantis - Resin
Viewing Issue Advanced Details
31 minor always 03-11-05 00:00 05-11-05 00:00
calebrichardson  
 
normal  
closed  
fixed  
none    
none 3.0.13  
0000031: ELParser fails to parse static methods properly
RSN-22
Using the com.caucho.el.ELParser class directly fails to parse static methods properly. The problem seems to be in this block of code.

protected ELParser create(String string)
{
  ELParser parser = new ELParser(string);

  parser.copy(this);

  return parser;
}

protected void copy(ELParser parser)
{
  parser._staticFunctionMap = _staticFunctionMap;
}

The line:

parser.copy(this)

should read

copy(parser)

This would make com.caucho.el.ELParser consistent with the behavior in com.caucho.el.JspELParser, which works properly.

Notes
(0000036)
ferg   
03-11-05 00:00   
Switched to consistently use parser.copy(this) and changed the copy routine to match.