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
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