[jboss-jira] [JBoss JIRA] Resolved: (JASSIST-118) JASSIST-112 is not compatible with CLDC
Shigeru Chiba (JIRA)
jira-events at lists.jboss.org
Thu Jul 8 05:47:47 EDT 2010
[ https://jira.jboss.org/browse/JASSIST-118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shigeru Chiba resolved JASSIST-118.
-----------------------------------
Fix Version/s: 3.13.0.GA
Resolution: Done
> JASSIST-112 is not compatible with CLDC
> ---------------------------------------
>
> Key: JASSIST-118
> URL: https://jira.jboss.org/browse/JASSIST-118
> Project: Javassist
> Issue Type: Bug
> Reporter: Yu Kobayashi
> Assignee: Shigeru Chiba
> Fix For: 3.13.0.GA
>
>
> Java CLDC does not include Cloneable and Serializable.
> So, JASSIST-112 is not compatible with CLDC.
> https://jira.jboss.org/browse/JASSIST-112
> CtArray.java should be like this.
> public CtClass[] getInterfaces() throws NotFoundException {
> if (interfaces == null) {
> boolean hasCloneable = pool.find("java.lang.Cloneable") != null;
> boolean hasSerializable = pool.find("java.io.Serializable") != null;
> int count = 0;
> if (hasCloneable)
> count++;
> if (hasSerializable)
> count++;
> interfaces = new CtClass[count];
>
> int idx = 0;
> if (hasCloneable)
> interfaces[idx++] = pool.get("java.lang.Cloneable");
> if (hasSerializable)
> interfaces[idx++] = pool.get("java.io.Serializable");
> }
> return interfaces;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list