Author: thomas.diesler(a)jboss.com
Date: 2008-05-22 14:41:04 -0400 (Thu, 22 May 2008)
New Revision: 7146
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java
Log:
Retry throw RTE
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java 2008-05-22
16:55:49 UTC (rev 7145)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/jaxws/impl/SunRIConsumerImpl.java 2008-05-22
18:41:04 UTC (rev 7146)
@@ -244,16 +244,20 @@
{
rte.printStackTrace();
}
-
- // Investigate, why this cannot be thrown
- // throw rte;
+ throw rte;
}
finally
{
- System.setProperty("java.class.path", javaClassPath);
-
- if (xmlInputFactory != null)
- System.setProperty("javax.xml.stream.XMLInputFactory",
xmlInputFactory);
+ resetSystemProperty("java.class.path", javaClassPath);
+ resetSystemProperty("javax.xml.stream.XMLInputFactory",
xmlInputFactory);
}
}
+
+ private void resetSystemProperty(String key, String value)
+ {
+ if (value != null)
+ System.setProperty(key, value);
+ else
+ System.clearProperty(key);
+ }
}
Show replies by date