Any progress on enum replication so far?

I am currently using a quick fix on "CachedType.java", because enums didn't 
work when I loaded them back using a cache loader. The fix simply considers 
enumerators as immediates (added code in bold):


  |  public static boolean isImmediate(Class clazz)
  |    {
  |       return immediates.contains(clazz) || isEnumerator(clazz);
  |    }
  |    
  |    public static boolean isEnumerator(Class clazz) {
  |        return Enum.class.isAssignableFrom(clazz);
  |    }
  | 


Seems to work fine at least locally (I have not tested cluster-wide 
replication).

I have no idea how enums are serialized, but if its just the ordinal thats 
serialized then this solution should always work and in that case there is no 
point in instrumenting the enum anyhow.


Regards,

Jussi Pyƶrre

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943179#3943179

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943179


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to