[jboss-cvs] JBossAS SVN: r104527 - projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu May 6 12:23:02 EDT 2010
Author: kabir.khan at jboss.com
Date: 2010-05-06 12:23:02 -0400 (Thu, 06 May 2010)
New Revision: 104527
Modified:
projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistUtil.java
Log:
[JBREFLECT-5] Need to check that the CtClass is not frozen before calling CtClass.toClass()
Modified: projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistUtil.java
===================================================================
--- projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistUtil.java 2010-05-06 16:19:13 UTC (rev 104526)
+++ projects/jboss-reflect/trunk/src/main/java/org/jboss/reflect/plugins/javassist/JavassistUtil.java 2010-05-06 16:23:02 UTC (rev 104527)
@@ -52,11 +52,11 @@
{
public static Class<?> ctClassToClass(CtClass ct)
{
- if(ct.isModified())
+ if(ct.isModified() && !ct.isFrozen())
{
try
{
- ct.toClass();
+ return ct.toClass();
}
catch (CannotCompileException e)
{
More information about the jboss-cvs-commits
mailing list