[jboss-jira] [JBoss JIRA] (JASSIST-148) StackOverflowError when using $sig and $class in call to static method
Wanja Gayk (Updated) (JIRA)
jira-events at lists.jboss.org
Wed Jan 4 21:38:09 EST 2012
[ https://issues.jboss.org/browse/JASSIST-148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wanja Gayk updated JASSIST-148:
-------------------------------
Description:
Using $sig or $class as method parameter in "insertBefore"-expressions throws a StackOverflowError if the target is a static method.
Calling nonstatic methods works like expected.
Stack/Log-Traces:
When using $sig:
instrumenting class: de/plush/brix/instrumentation/Main (995 bytes)
instrumenting class: javassist/runtime/Desc (3280 bytes)
Exception in thread "main" java.lang.StackOverflowError
at javassist.runtime.Desc.getParams(Desc.java)
at javassist.runtime.Desc.getParams(Desc.java)
at javassist.runtime.Desc.getParams(Desc.java)
[...]
When using $class:
instrumenting class: de/plush/brix/instrumentation/Main (995 bytes)
instrumenting class: javassist/runtime/Desc (3280 bytes)
Exception in thread "main" java.lang.StackOverflowError
at javassist.runtime.Desc.getClazz(Desc.java)
at javassist.runtime.Desc.getClazz(Desc.java)
[...]
was:
Using $sig or $class as method parameter in "insertBefore"-expressions throws a StackOverflowError when the target is a static method.
Calling nonstatic methods works like expected.
Stack/Log-Traces:
When using $sig:
instrumenting class: de/plush/brix/instrumentation/Main (995 bytes)
instrumenting class: javassist/runtime/Desc (3280 bytes)
Exception in thread "main" java.lang.StackOverflowError
at javassist.runtime.Desc.getParams(Desc.java)
at javassist.runtime.Desc.getParams(Desc.java)
at javassist.runtime.Desc.getParams(Desc.java)
[...]
When using $class:
instrumenting class: de/plush/brix/instrumentation/Main (995 bytes)
instrumenting class: javassist/runtime/Desc (3280 bytes)
Exception in thread "main" java.lang.StackOverflowError
at javassist.runtime.Desc.getClazz(Desc.java)
at javassist.runtime.Desc.getClazz(Desc.java)
[...]
Forum Reference: http://community.jboss.org/thread/176637?tstart=0 (was: http://community.jboss.org/thread/176637?tstart=0)
> StackOverflowError when using $sig and $class in call to static method
> ----------------------------------------------------------------------
>
> Key: JASSIST-148
> URL: https://issues.jboss.org/browse/JASSIST-148
> Project: Javassist
> Issue Type: Bug
> Affects Versions: 3.15.0-GA
> Environment: Runtime Enviroment:
> Java SE 6 Update 30 (64 bit)
> also reproduced with:
> Java SE 7 Update 2 (64 bit)
> Compiler:
> Eclipse Indigo (Version: 3.7.1, Build id: M20110909-1335).
> Operating System
> Windows 7 Professional (64 bit)
> CPU:
> Intel Core i7 860 (2,8 GHz)
> Reporter: Wanja Gayk
> Assignee: Shigeru Chiba
>
> Using $sig or $class as method parameter in "insertBefore"-expressions throws a StackOverflowError if the target is a static method.
> Calling nonstatic methods works like expected.
> Stack/Log-Traces:
> When using $sig:
> instrumenting class: de/plush/brix/instrumentation/Main (995 bytes)
> instrumenting class: javassist/runtime/Desc (3280 bytes)
> Exception in thread "main" java.lang.StackOverflowError
> at javassist.runtime.Desc.getParams(Desc.java)
> at javassist.runtime.Desc.getParams(Desc.java)
> at javassist.runtime.Desc.getParams(Desc.java)
> [...]
> When using $class:
> instrumenting class: de/plush/brix/instrumentation/Main (995 bytes)
> instrumenting class: javassist/runtime/Desc (3280 bytes)
> Exception in thread "main" java.lang.StackOverflowError
> at javassist.runtime.Desc.getClazz(Desc.java)
> at javassist.runtime.Desc.getClazz(Desc.java)
> [...]
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list