You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by we...@apache.org on 2003/03/03 06:37:37 UTC

cvs commit: jakarta-commons/jelly/src/java/org/apache/commons/jelly/impl StaticTag.java

werken      2003/03/02 21:37:37

  Modified:    jelly/src/java/org/apache/commons/jelly/impl StaticTag.java
  Log:
  Adding the throws JellyTagException to the setAttribute(...) so that
  sub-classes can throw it, even though StaticTag itself does not.
  
  Is there a mode for checkstyle to ensure that subclasses throw
  the same exceptions as their super-classes/super-interfaces so
  that unwritten-yet subclasses can still throw them as an option?
  
  Revision  Changes    Path
  1.15      +6 -6      jakarta-commons/jelly/src/java/org/apache/commons/jelly/impl/StaticTag.java
  
  Index: StaticTag.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/jelly/src/java/org/apache/commons/jelly/impl/StaticTag.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- StaticTag.java	25 Jan 2003 18:59:23 -0000	1.14
  +++ StaticTag.java	3 Mar 2003 05:37:37 -0000	1.15
  @@ -117,7 +117,7 @@
       
       // DynaTag interface
       //-------------------------------------------------------------------------                    
  -    public void setAttribute(String name, Object value) {
  +    public void setAttribute(String name, Object value) throws JellyTagException {
           // ### we'll assume that all attributes are in no namespace!
           // ### this is severely limiting!
           // ### - Tag attributes should allow for namespace aware 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org