Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000517 [Resin] minor always 12-19-05 14:46 01-10-06 16:04
Reporter ferg View Status public  
Assigned To ferg
Priority urgent Resolution fixed  
Status closed   Product Version
Summary 0000517: tag descriptor and setValue
Description (rep by Bill Au)

We have discovered a bug with the Resin Pro 3.0.14 JSP compiler.
I can't open a bug on the new BugTrack so I am reporting it her.

In a nutshell, when a custom tag is created as a 'tagfile' (JSP 2.0
feature) and compiled to its tag handler, the setter for an attribute
named 'value' is incorrectly generated such that the handler's internal
field representing the attribute is never actually assigned its, er,
*value*. Naming the attribute something other than 'value' gets around
this, but this seems to be a very annoying problem as 'value' is a
highly appropriate name for an attribute.

Enclosed is a test case that we have made up. It creates two custom
tags, one uses "amount" as an attribute name and the other uses
"value". Upon inspecting the generated code:

public class _bad__tag extends com.caucho.jsp.java.JspTagSupport {
  private boolean _caucho_isDead;

  private java.lang.Integer value;
  private boolean _jsp_value_isSet;

  public void setValue(java.lang.Integer value)
  {
    _jsp_value_isSet = true;
    value = value;
  }

  public java.lang.Integer getValue()
  {
    return value;
  }

We found that the setter method of the attribute doesn't qualify the
attribute name ('this.value') when assigning its, er, value from the
passed parameter.

(see attachments)
Additional Information
Attached Files

- Relationships

- Notes
(0000669)
ferg
01-10-06 16:04

jsp/101i
 

- Issue History
Date Modified Username Field Change
12-19-05 14:46 ferg New Issue
12-30-05 18:40 ferg Project Quercus => Resin
01-10-06 16:04 ferg Note Added: 0000669
01-10-06 16:04 ferg Assigned To  => ferg
01-10-06 16:04 ferg Status new => closed
01-10-06 16:04 ferg Resolution open => fixed
01-10-06 16:04 ferg Fixed in Version  => 3.0.17
01-10-06 16:04 ferg View Status @0@ => public


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker