You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by BugRat Mail System <to...@cortexity.com> on 2000/12/26 16:54:43 UTC

BugRat Report #665 has been filed.

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).