openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1666745 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception: ./ helper/
Date Sat, 14 Mar 2015 20:58:32 GMT
Author: struberg
Date: Sat Mar 14 20:58:32 2015
New Revision: 1666745

URL: http://svn.apache.org/r1666745
Log:
OWB-1039 make revert writeReplace and make ExceptionMessageBuilder serializable

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/DuplicateDefinitionException.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/InconsistentSpecializationException.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansConfigurationException.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansDeploymentException.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/helper/ExceptionMessageBuilder.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/DuplicateDefinitionException.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/DuplicateDefinitionException.java?rev=1666745&r1=1666744&r2=1666745&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/DuplicateDefinitionException.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/DuplicateDefinitionException.java
Sat Mar 14 20:58:32 2015
@@ -22,8 +22,6 @@ import javax.enterprise.inject.spi.Defin
 import org.apache.webbeans.exception.helper.DescriptiveException;
 import org.apache.webbeans.exception.helper.ExceptionMessageBuilder;
 
-import java.io.ObjectStreamException;
-
 public class DuplicateDefinitionException extends DefinitionException implements DescriptiveException
 {
     private static final long serialVersionUID = 2312285271502063304L;
@@ -64,8 +62,4 @@ public class DuplicateDefinitionExceptio
         return msg.getAdditionalInformation(super.getLocalizedMessage());
     }
 
-    private Object writeReplace() throws ObjectStreamException
-    {
-        return new DefinitionException(getMessage(), getCause());
-    }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/InconsistentSpecializationException.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/InconsistentSpecializationException.java?rev=1666745&r1=1666744&r2=1666745&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/InconsistentSpecializationException.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/InconsistentSpecializationException.java
Sat Mar 14 20:58:32 2015
@@ -22,8 +22,6 @@ import javax.enterprise.inject.spi.Defin
 import org.apache.webbeans.exception.helper.DescriptiveException;
 import org.apache.webbeans.exception.helper.ExceptionMessageBuilder;
 
-import java.io.ObjectStreamException;
-
 public class InconsistentSpecializationException extends DefinitionException implements DescriptiveException
 {
     private static final long serialVersionUID = 5398575103682514128L;
@@ -63,8 +61,4 @@ public class InconsistentSpecializationE
         return msg.getAdditionalInformation(super.getLocalizedMessage());
     }
 
-    private Object writeReplace() throws ObjectStreamException
-    {
-        return new DefinitionException(getMessage(), getCause());
-    }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansConfigurationException.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansConfigurationException.java?rev=1666745&r1=1666744&r2=1666745&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansConfigurationException.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansConfigurationException.java
Sat Mar 14 20:58:32 2015
@@ -22,8 +22,6 @@ import javax.enterprise.inject.spi.Defin
 import org.apache.webbeans.exception.helper.DescriptiveException;
 import org.apache.webbeans.exception.helper.ExceptionMessageBuilder;
 
-import java.io.ObjectStreamException;
-
 /**
  * Exception that is thrown by the web beans container at the intialization
  * time. This is the OWB implementation of the DefinitionException.
@@ -70,9 +68,4 @@ public class WebBeansConfigurationExcept
     {
         return msg.getAdditionalInformation(super.getLocalizedMessage());
     }
-
-    private Object writeReplace() throws ObjectStreamException
-    {
-        return new DefinitionException(getMessage(), getCause());
-    }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansDeploymentException.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansDeploymentException.java?rev=1666745&r1=1666744&r2=1666745&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansDeploymentException.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/WebBeansDeploymentException.java
Sat Mar 14 20:58:32 2015
@@ -22,8 +22,6 @@ import javax.enterprise.inject.spi.Deplo
 import org.apache.webbeans.exception.helper.DescriptiveException;
 import org.apache.webbeans.exception.helper.ExceptionMessageBuilder;
 
-import java.io.ObjectStreamException;
-
 /**
  * Exception that is thrown by the web beans container at the deployment time.
  * 
@@ -68,9 +66,4 @@ public class WebBeansDeploymentException
     {
         return msg.getAdditionalInformation(super.getLocalizedMessage());
     }
-
-    private Object writeReplace() throws ObjectStreamException
-    {
-        return new DeploymentException(getMessage(), getCause());
-    }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/helper/ExceptionMessageBuilder.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/helper/ExceptionMessageBuilder.java?rev=1666745&r1=1666744&r2=1666745&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/helper/ExceptionMessageBuilder.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/exception/helper/ExceptionMessageBuilder.java
Sat Mar 14 20:58:32 2015
@@ -18,6 +18,7 @@
  */
 package org.apache.webbeans.exception.helper;
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -25,8 +26,10 @@ import java.util.List;
 /**
  * Helper for {@link DescriptiveException}.
  */
-public class ExceptionMessageBuilder
+public class ExceptionMessageBuilder implements Serializable
 {
+    private static final long serialVersionUID = 4391880458753108617L;
+
     private List<String> additionalInformations;
 
     public void addInformation(String additionalInformation)



Mime
View raw message