You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by jo...@apache.org on 2004/08/19 22:32:43 UTC
cvs commit: ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl JAXBSchemaReader.java
jochen 2004/08/19 13:32:43
Modified: src/jaxme/org/apache/ws/jaxme/generator/sg/impl
JAXBSchemaReader.java
Log:
Fixed use of JDK 1.4 method Exception.getCause()
Obtained from: Nacho G. Mac Dowell (igonzalez at informa.es)
Revision Changes Path
1.6 +2 -2 ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/JAXBSchemaReader.java
Index: JAXBSchemaReader.java
===================================================================
RCS file: /home/cvs/ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/JAXBSchemaReader.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- JAXBSchemaReader.java 16 Feb 2004 23:39:55 -0000 1.5
+++ JAXBSchemaReader.java 19 Aug 2004 20:32:43 -0000 1.6
@@ -83,7 +83,7 @@
throw new SAXException("The SGFactoryChain class " + c.getName() +
" has no constructor taking the backing chain as an argument.");
} catch (InvocationTargetException e) {
- Throwable t = e.getCause();
+ Throwable t = ((InvocationTargetException) e).getTargetException();
String msg = "Failed to invoke the constructor of class " + c.getName() +
" with an argument of type " + chain.getClass().getName() +
": " + t.getClass().getName() + ", " + t.getMessage();
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org