[jira] [Comment Edited] (LANG-1524) TypeUtils.toString StackOverflowError for an inner class in the inner class parameterized enclosing class.
[ https://issues.apache.org/jira/browse/LANG-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840483#comment-17840483 ] Gary D. Gregory edited comment on LANG-1524 at 4/24/24 3:20 PM: Resolved in git master. was (Author: garydgregory): > TypeUtils.toString StackOverflowError for an inner class in the inner class > parameterized enclosing class. > -- > > Key: LANG-1524 > URL: https://issues.apache.org/jira/browse/LANG-1524 > Project: Commons Lang > Issue Type: Bug > Components: lang.reflect.* >Affects Versions: 3.9 >Reporter: kijong.youn >Priority: Major > Fix For: 3.15.0 > > Time Spent: 3h 10m > Remaining Estimate: 0h > > StackOverflowError occurred on toString for an inner class in the inner class > parameterized enclosing class. > > source: > {code:java} > public class Test { > public static class Inner { > } > public static void main(final String[] args) { > System.out.println(TypeUtils.toString(Inner.class)); > } > } {code} > result: > {code:java} > Exception in thread "main" java.lang.StackOverflowErrorException in thread > "main" java.lang.StackOverflowError at > java.lang.Class.getEnclosingMethodInfo(Class.java:1072) at > java.lang.Class.getEnclosingClass(Class.java:1272) at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1751) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1663) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.typeVariableToString(TypeUtils.java:1775) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1672) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1758) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1752) > ...{code} > -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Comment Edited] (LANG-1524) TypeUtils.toString StackOverflowError for an inner class in the inner class parameterized enclosing class.
[ https://issues.apache.org/jira/browse/LANG-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236552#comment-17236552 ] Aakash Gupta edited comment on LANG-1524 at 11/21/20, 1:41 PM: --- Hi [~arturobernalg] [~ggregory] I've raised a PR: [https://github.com/apache/commons-lang/pull/657/] Could you please review it? was (Author: aakashgupta96): Hi [~arturobernalg] [~ggregory] I would I've raised a PR: [https://github.com/apache/commons-lang/pull/657/] Could you please review it? > TypeUtils.toString StackOverflowError for an inner class in the inner class > parameterized enclosing class. > -- > > Key: LANG-1524 > URL: https://issues.apache.org/jira/browse/LANG-1524 > Project: Commons Lang > Issue Type: Bug > Components: lang.reflect.* >Affects Versions: 3.9 >Reporter: kijong.youn >Priority: Major > Time Spent: 1h 40m > Remaining Estimate: 0h > > StackOverflowError occurred on toString for an inner class in the inner class > parameterized enclosing class. > > source: > {code:java} > public class Test { > public static class Inner { > } > public static void main(final String[] args) { > System.out.println(TypeUtils.toString(Inner.class)); > } > } {code} > result: > {code:java} > Exception in thread "main" java.lang.StackOverflowErrorException in thread > "main" java.lang.StackOverflowError at > java.lang.Class.getEnclosingMethodInfo(Class.java:1072) at > java.lang.Class.getEnclosingClass(Class.java:1272) at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1751) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1663) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.typeVariableToString(TypeUtils.java:1775) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1672) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1758) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1752) > ...{code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (LANG-1524) TypeUtils.toString StackOverflowError for an inner class in the inner class parameterized enclosing class.
[ https://issues.apache.org/jira/browse/LANG-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236552#comment-17236552 ] Aakash Gupta edited comment on LANG-1524 at 11/21/20, 1:10 AM: --- Hi [~arturobernalg] [~ggregory] I would I've raised a PR: [https://github.com/apache/commons-lang/pull/657/] Could you please review it? was (Author: aakashgupta96): Hi [~arturobernalg] [~ggregory] I would I've raised a PR: [https://github.com/apache/commons-lang/pull/657|https://github.com/apache/commons-lang/pull/656] Could you please review it? > TypeUtils.toString StackOverflowError for an inner class in the inner class > parameterized enclosing class. > -- > > Key: LANG-1524 > URL: https://issues.apache.org/jira/browse/LANG-1524 > Project: Commons Lang > Issue Type: Bug > Components: lang.reflect.* >Affects Versions: 3.9 >Reporter: kijong.youn >Priority: Major > Time Spent: 50m > Remaining Estimate: 0h > > StackOverflowError occurred on toString for an inner class in the inner class > parameterized enclosing class. > > source: > {code:java} > public class Test { > public static class Inner { > } > public static void main(final String[] args) { > System.out.println(TypeUtils.toString(Inner.class)); > } > } {code} > result: > {code:java} > Exception in thread "main" java.lang.StackOverflowErrorException in thread > "main" java.lang.StackOverflowError at > java.lang.Class.getEnclosingMethodInfo(Class.java:1072) at > java.lang.Class.getEnclosingClass(Class.java:1272) at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1751) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1663) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.typeVariableToString(TypeUtils.java:1775) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1672) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1758) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1752) > ...{code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Comment Edited] (LANG-1524) TypeUtils.toString StackOverflowError for an inner class in the inner class parameterized enclosing class.
[ https://issues.apache.org/jira/browse/LANG-1524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236552#comment-17236552 ] Aakash Gupta edited comment on LANG-1524 at 11/21/20, 1:09 AM: --- Hi [~arturobernalg] [~ggregory] I would I've raised a PR: [https://github.com/apache/commons-lang/pull/657|https://github.com/apache/commons-lang/pull/656] Could you please review it? was (Author: aakashgupta96): Hi [~arturobernalg] [~ggregory] I would I've raised a PR: [https://github.com/apache/commons-lang/pull/656] Could you please review it? > TypeUtils.toString StackOverflowError for an inner class in the inner class > parameterized enclosing class. > -- > > Key: LANG-1524 > URL: https://issues.apache.org/jira/browse/LANG-1524 > Project: Commons Lang > Issue Type: Bug > Components: lang.reflect.* >Affects Versions: 3.9 >Reporter: kijong.youn >Priority: Major > Time Spent: 50m > Remaining Estimate: 0h > > StackOverflowError occurred on toString for an inner class in the inner class > parameterized enclosing class. > > source: > {code:java} > public class Test { > public static class Inner { > } > public static void main(final String[] args) { > System.out.println(TypeUtils.toString(Inner.class)); > } > } {code} > result: > {code:java} > Exception in thread "main" java.lang.StackOverflowErrorException in thread > "main" java.lang.StackOverflowError at > java.lang.Class.getEnclosingMethodInfo(Class.java:1072) at > java.lang.Class.getEnclosingClass(Class.java:1272) at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1751) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1663) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.typeVariableToString(TypeUtils.java:1775) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1672) > at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1891) > at > org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:1882) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1758) > at > org.apache.commons.lang3.reflect.TypeUtils.classToString(TypeUtils.java:1752) > ...{code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)