You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by pn...@apache.org on 2003/08/27 15:53:57 UTC

cvs commit: jakarta-slide/src/share/org/apache/slide/macro MacroImpl.java

pnever      2003/08/27 06:53:57

  Modified:    src/share/org/apache/slide/macro MacroImpl.java
  Log:
  Fixed bug.
  
  Revision  Changes    Path
  1.33      +8 -8      jakarta-slide/src/share/org/apache/slide/macro/MacroImpl.java
  
  Index: MacroImpl.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/share/org/apache/slide/macro/MacroImpl.java,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- MacroImpl.java	25 Aug 2003 15:51:08 -0000	1.32
  +++ MacroImpl.java	27 Aug 2003 13:53:57 -0000	1.33
  @@ -627,10 +627,10 @@
                   } catch(ObjectNotFoundException onf) {
                       // Silent catch, the target doesn't exist
                   } catch(DeleteMacroException s) {
  -                    throw s;
  -                } catch(SlideException s) {
  -                    e.addException(s);
  -                    throw e;
  +                    Enumeration en = s.enumerateExceptions();
  +                    if (en.hasMoreElements()) {
  +                        throw (SlideException)en.nextElement();
  +                    }
                   }
               }