You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by db...@apache.org on 2009/12/14 23:52:02 UTC

svn commit: r890525 - /geronimo/specs/trunk/geronimo-ejb_3.1_spec/SunCompatible.diff

Author: dblevins
Date: Mon Dec 14 22:52:02 2009
New Revision: 890525

URL: http://svn.apache.org/viewvc?rev=890525&view=rev
Log:
A patch that attempts to replicate sun's broken EJBException

Added:
    geronimo/specs/trunk/geronimo-ejb_3.1_spec/SunCompatible.diff

Added: geronimo/specs/trunk/geronimo-ejb_3.1_spec/SunCompatible.diff
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec/SunCompatible.diff?rev=890525&view=auto
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec/SunCompatible.diff (added)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec/SunCompatible.diff Mon Dec 14 22:52:02 2009
@@ -0,0 +1,39 @@
+Index: src/main/java/javax/ejb/EJBException.java
+===================================================================
+--- src/main/java/javax/ejb/EJBException.java	(revision 890521)
++++ src/main/java/javax/ejb/EJBException.java	(working copy)
+@@ -34,13 +34,13 @@
+ public class EJBException extends RuntimeException {
+ 
+     private static final long serialVersionUID = 796770993296843510L;
++    private Exception ex;
+ 
+     public EJBException() {
+-        super();
+     }
+ 
+     public EJBException(Exception ex) {
+-        super(ex);
++        this.ex = ex;
+     }
+ 
+     public EJBException(String message) {
+@@ -48,15 +48,12 @@
+     }
+ 
+     public EJBException(String message, Exception ex) {
+-        super(message, ex);
++        super(message);
++        this.ex = ex;
+     }
+ 
+     public Exception getCausedByException() {
+-        Throwable cause = getCause();
+-        if (cause instanceof Exception) {
+-            return (Exception) cause;
+-        }
+-        return null;
++        return ex;
+     }
+ 
+     public String getMessage() {