[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] [FYI] fix XMLOutputFactoryImpl

From: Robert Schuster
Subject: [cp-patches] [FYI] fix XMLOutputFactoryImpl
Date: Sun, 02 Oct 2005 22:16:18 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.11) Gecko/20050916

normally I would RFC first when doing changes to an XML processing API but this
one is really obvious: Without the change the IllegalArgumentException in
setProperty would be thrown in all cases.

I found it while trying to run a DeveloperWorks[0] demo application.

2005-10-02  Robert Schuster  <address@hidden>

    * gnu/xml/stream/
    (setProperty): Added 'else'.


[0] -
Index: gnu/xml/stream/
RCS file: 
retrieving revision 1.1
diff -u -r1.1
--- gnu/xml/stream/    4 Sep 2005 09:52:10 -0000       
+++ gnu/xml/stream/    2 Oct 2005 20:04:11 -0000
@@ -121,7 +121,8 @@
     if (IS_PREFIX_DEFAULTING.equals(name))
       prefixDefaulting = ((Boolean) value).booleanValue();
-    throw new IllegalArgumentException(name);
+    else
+      throw new IllegalArgumentException(name);
   public Object getProperty(String name)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]