Bug report #665 has just been filed. You can view the report at the following URL: <http://znutar.cortexity.com/BugRatViewer/ShowReport/665> REPORT #665 Details. Project: Jasper Category: Feature Requests SubCategory: Enhancement Class: swbug State: received Priority: medium Severity: non-critical Confidence: public Environment: Release: 3.2.1 JVM Release: 1.3 Operating System: Windows 2000 OS Release: ? Platform: Intel Synopsis: Check for attribute setter method Description: If you specify an attribute for a JSP tag and then forget to put a setter method in the Tag class, you get a meaningless "Unable to compile class for JSP" error at runtime. The offending code is lines 195-6 of TagBeginGenerator.java (generateSetters): Method m = tc.getSetterMethod(attrName); Class c[] = m.getParameterTypes(); Suggested change: check whether m is null and throw a meaningful exception if it is ("No setter method specified for attribute " + attrName).Title: BugRat Report # 665
BugRat Report # 665
Project: Jasper | Release: 3.2.1 |
Category: Feature Requests | SubCategory: Enhancement |
Class: swbug | State: received |
Priority: medium | Severity: non-critical |
Confidence:
public
|
Submitter:
_Anonymous ( [EMAIL PROTECTED] )
Date Submitted:
Dec 26 2000, 09:54:43 CST
Responsible:
Z_Tomcat Alias ( [EMAIL PROTECTED] )
- Synopsis:
- Check for attribute setter method
- Environment: (jvm, os, osrel, platform)
- 1.3, Windows 2000, ?, Intel
- Additional Environment Description:
- Report Description:
- If you specify an attribute for a JSP tag and then forget to put a setter method in the Tag class, you get a meaningless "Unable to compile class for JSP" error at runtime. The offending code is lines 195-6 of TagBeginGenerator.java (generateSetters): Method m = tc.getSetterMethod(attrName); Class c[] = m.getParameterTypes(); Suggested change: check whether m is null and throw a meaningful exception if it is ("No setter method specified for attribute " + attrName).