List Info

Thread: Incompatible API Change in 2.1.0.CR3




Incompatible API Change in 2.1.0.CR3
user name
2008-01-18 12:36:02
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.khanjboss.com>
To: Dimitris Andreadis <dandreadredhat.com>
CC: Carlo de Wolf <carlo.dewolfjboss.com>,        Brian
Stansberry 
<brian.stansberryredhat.com>,        JBoss AS
<jboss-asredhat.com>, 
Flavia Rainone <frainoneredhat.com>
References: <4790849E.5080801redhat.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.stansberryredhat.com
_______________________________________________
jbosscache-dev mailing list
jbosscache-devlists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-dev

Re: Incompatible API Change in 2.1.0.CR3
user name
2008-01-21 10:18:45
Thanks for this.

Will be corrected before the next CR.

http:/
/jira.jboss.org/jira/browse/JBCACHE-1271


On 18 Jan 2008, at 18:36, Brian Stansberry wrote:

> 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.khanjboss.com>
> To: Dimitris Andreadis <dandreadredhat.com>
> CC: Carlo de Wolf <carlo.dewolfjboss.com>,        Brian Stansberry
<brian.stansberryredhat.com 
> >,        JBoss AS <jboss-asredhat.com>, Flavia Rainone <frainoneredhat.com 
> >
> References: <4790849E.5080801redhat.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.stansberryredhat.com
> _______________________________________________
> jbosscache-dev mailing list
> jbosscache-devlists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosscache-dev

--
Manik Surtani
Lead, JBoss Cache
manikjboss.org






_______________________________________________
jbosscache-dev mailing list
jbosscache-devlists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )