<li>CtClass#toClass() and ClassPool#toClass() were modified to accept a
<code>ProtectionDomain</code>
(<a href="http://jira.jboss.com/jira/browse/JASSIST-23">JASSIST-23</a>).
+ ClassPool#toClass(CtClass, ClassLoader) is now a final method. All
+ subclasses of ClassPool must override toClass(CtClass, ClassLoader,
+ ProtectionDomain).
+
<li>CtClass#getAvailableAnnotations() etc. have been implemented.
+
<li>A bug related to a way of dealing with a bridge method was fixed
(<a href="http://jira.jboss.com/jira/browse/HIBERNATE-37">HIBERNATE-37</a>).
+
<li>javassist.scopedpool package was added.
</ul>
<project name="javassist" default="jar" basedir=".">
- <property name="dist-version" value="javassist-3.2"/>
+ <property name="dist-version" value="javassist-3.3"/>
<property environment="env"/>
<property name="target.jar" value="javassist.jar"/>
{
this(src.fieldInfo.getDescriptor(), src.fieldInfo.getName(),
declaring);
+ java.util.ListIterator iterator
+ = src.fieldInfo.getAttributes().listIterator();
+ FieldInfo fi = fieldInfo;
+ fi.setAccessFlags(src.fieldInfo.getAccessFlags());
+ ConstPool cp = fi.getConstPool();
+ while (iterator.hasNext()) {
+ AttributeInfo ainfo = (AttributeInfo)iterator.next();
+ fi.addAttribute(ainfo.copy(cp, null));
+ }
}
private CtField(String typeDesc, String name, CtClass clazz)