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

Shigeru Chiba (JIRA) jira-events at lists.jboss.org
Mon May 23 21:38:00 EDT 2011


    [ https://issues.jboss.org/browse/JASSIST-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12603790#comment-12603790 ] 

Shigeru Chiba commented on JASSIST-142:
---------------------------------------

 > due to an artificial limit imposed in ClassPoolTail.copyStream(InputStream, OutputStream).


OK, thanks.  Did you see IOException("too much data")?


> 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