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

Manik Surtani manik at jboss.org
Mon Jan 21 11:18:45 EST 2008


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.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
> _______________________________________________
> jbosscache-dev mailing list
> jbosscache-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosscache-dev

--
Manik Surtani
Lead, JBoss Cache
manik at jboss.org









More information about the jbosscache-dev mailing list