[jbosscache-dev] Incompatible API Change in 2.1.0.CR3

Brian Stansberry brian.stansberry at redhat.com
Fri Jan 18 13:36:02 EST 2008


There's been a change in the public API in 2.1.0.CR3: Option.clone() no 
longer throws CloneNotSupportedException.

This may break apps upgrading from 2.0.0; see example below.

-------- Original Message --------
Subject: Re: ejb3-head-testsuite spike
Date: Fri, 18 Jan 2008 12:58:49 +0000
From: Kabir Khan <kabir.khan at jboss.com>
To: Dimitris Andreadis <dandread at redhat.com>
CC: Carlo de Wolf <carlo.dewolf at jboss.com>,        Brian Stansberry 
<brian.stansberry at redhat.com>,        JBoss AS <jboss-as at redhat.com>, 
Flavia Rainone <frainone at redhat.com>
References: <4790849E.5080801 at redhat.com>

<snip/>

Also, yesterday following the jboss cache upgrade, in order to be able
to build I had to make the following changes to StatefulTreeCache.java:

@@ -679,31 +679,31 @@
           }
        }
     }
-
+
     private static Option getLocalOnlyOption()
     {
-      try
-      {
+      //try
+      //{
           return LOCAL_ONLY_OPTION.clone();
-      }
-      catch (CloneNotSupportedException e)
-      {
-         throw new RuntimeException(e);
-      }
+      //}
+      //catch (CloneNotSupportedException e)
+      //{
+      //   throw new RuntimeException(e);
+      //}
     }
-
+
     private static Option getGravitateOption()
     {
-      try
-      {
+      //try
+      //{
           return GRAVITATE_OPTION.clone();
-      }
-      catch (CloneNotSupportedException e)
-      {
-         throw new RuntimeException(e);
-      }
+      //}
+      //catch (CloneNotSupportedException e)
+      //{
+      //   throw new RuntimeException(e);
+      //}
     }
-
+

-- 
Kabir Khan
JBoss AOP Lead
JBoss, a division of Red Hat



-- 
Brian Stansberry
Lead, AS Clustering
JBoss, a division of Red Hat
brian.stansberry at redhat.com



More information about the jbosscache-dev mailing list