geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1211252 - in /geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src: main/java/javax/ejb/EJBException.java test/java/javax/ejb/EJBExceptionTest.java
Date Wed, 07 Dec 2011 01:15:42 GMT
Author: dblevins
Date: Wed Dec  7 01:15:42 2011
New Revision: 1211252

URL: http://svn.apache.org/viewvc?rev=1211252&view=rev
Log:
fixed last test case

Modified:
    geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/main/java/javax/ejb/EJBException.java
    geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/test/java/javax/ejb/EJBExceptionTest.java

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/main/java/javax/ejb/EJBException.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/main/java/javax/ejb/EJBException.java?rev=1211252&r1=1211251&r2=1211252&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/main/java/javax/ejb/EJBException.java
(original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/main/java/javax/ejb/EJBException.java
Wed Dec  7 01:15:42 2011
@@ -79,7 +79,7 @@ public class EJBException extends Runtim
     }
 
     public void printStackTrace(PrintStream ps) {
-        if (causeException == null || causeException == super.getCause()) {
+        if (causeException == null || super.getCause() == null || causeException == super.getCause())
{
             super.printStackTrace(ps);
         } else synchronized (ps) {
             ps.println(this);
@@ -89,7 +89,7 @@ public class EJBException extends Runtim
     }
 
     public void printStackTrace(PrintWriter pw) {
-        if (causeException == null || causeException == super.getCause()) {
+        if (causeException == null || super.getCause() == null ||  causeException == super.getCause())
{
             super.printStackTrace(pw);
         } else synchronized (pw) {
             pw.println(this);

Modified: geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/test/java/javax/ejb/EJBExceptionTest.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/test/java/javax/ejb/EJBExceptionTest.java?rev=1211252&r1=1211251&r2=1211252&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/test/java/javax/ejb/EJBExceptionTest.java
(original)
+++ geronimo/specs/trunk/geronimo-ejb_3.1_spec-alt/src/test/java/javax/ejb/EJBExceptionTest.java
Wed Dec  7 01:15:42 2011
@@ -192,7 +192,7 @@ public class EJBExceptionTest {
     }
 
     @Test
-    public void _testPrintStackTrace() throws Exception {
+    public void testPrintStackTrace() throws Exception {
 
         for (String s : printStackTraces(exceptionDefaultConstructor)) {
 



Mime
View raw message