http://nagoya.apache.org/bugzilla/show_bug.cgi?id=376

*** shadow/376  Sat Feb  3 11:29:59 2001
--- shadow/376.tmp.24460        Sat Feb  3 11:29:59 2001
***************
*** 0 ****
--- 1,24 ----
+ +============================================================================+
+ | Check for attribute setter method BugRat Report#665                        |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 376                         Product: Tomcat 3                |
+ |       Status: NEW                         Version: 3.2.1 Final             |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: High                      Component: Jasper                  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                          |
+ |  Reported By: [EMAIL PROTECTED]                                  |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              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).

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to