[jboss-jira] [JBoss JIRA] Created: (JASSIST-142) Javassist throws a CannotCompileException on the org.codehaus.groovy.runtime.ArrayUtil class

Robert Elliot (JIRA) jira-events at lists.jboss.org
Mon May 23 17:36:01 EDT 2011


Javassist throws a CannotCompileException on the org.codehaus.groovy.runtime.ArrayUtil class
--------------------------------------------------------------------------------------------

                 Key: JASSIST-142
                 URL: https://issues.jboss.org/browse/JASSIST-142
             Project: Javassist
          Issue Type: Bug
    Affects Versions: 3.14.0.GA
         Environment: N/A
            Reporter: Robert Elliot
            Assignee: Shigeru Chiba


With Groovy 1.7.5 on the classpath the following snippet throws a CannotCompileException:

{noformat}ClassPool classPool = new ClassPool();
classPool.appendSystemPath();
CtClass ctClass = classPool.get("org.codehaus.groovy.runtime.ArrayUtil");
ctClass.toBytecode();{noformat}

This is currently preventing me using PowerMock in a test case written in Groovy, which seems a shame.  It appears to be due to an artificial limit imposed in ClassPoolTail.copyStream(InputStream, OutputStream).


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list