[jbosstools-issues] [JBoss JIRA] (JBIDE-21036) Infinite cycle in ParametedType.isAssignableTo()
Viacheslav Kabanovich (JIRA)
issues at jboss.org
Thu Nov 5 13:18:00 EST 2015
[ https://issues.jboss.org/browse/JBIDE-21036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Viacheslav Kabanovich updated JBIDE-21036:
------------------------------------------
Description:
java.lang.StackOverflowError is reported in
http://stackoverflow.com/questions/33301776/an-internal-error-occurred-during-jboss-tools-project-validator
Infinitely cycling calls are
org.jboss.tools.common.java.ParametedType.isAssignableTo(ParametedType.java:398) at org.jboss.tools.common.java.ParametedType.isAssignableTo(ParametedType.java:402) at org.jboss.tools.common.java.ParametedType.areTypeParametersAssignableTo(ParametedType.java:430)
Sample that reproduces the stack trace:
{code}
public class B {
static class A1<V extends A1<V>> {
}
static class A2<T extends A2<T>> extends A1<A2<T>> {
}
static class A3 extends A2<A3> {
}
@Inject
A1<A2<A3>> q;
}
{code}
One more infinite cycle in ParametedType.equals():
at org.jboss.tools.common.java.ParametedType.equals(ParametedType.java:171)
can be reproduced with sample:
{code}
public class A<V extends A.B<V>> {
static class B<V1 extends A.B<V1>> {
}
@Inject
A.B<V> s2;
}
{code}
was:
java.lang.StackOverflowError is reported in
http://stackoverflow.com/questions/33301776/an-internal-error-occurred-during-jboss-tools-project-validator
Infinitely cycling calls are
org.jboss.tools.common.java.ParametedType.isAssignableTo(ParametedType.java:398) at org.jboss.tools.common.java.ParametedType.isAssignableTo(ParametedType.java:402) at org.jboss.tools.common.java.ParametedType.areTypeParametersAssignableTo(ParametedType.java:430)
Sample that reproduces the stack trace:
{code}
public class B {
static class A1<V extends A1<V>> {
}
static class A2<T extends A2<T>> extends A1<A2<T>> {
}
static class A3 extends A2<A3> {
}
@Inject
A1<A2<A3>> q;
}
{code}
> Infinite cycle in ParametedType.isAssignableTo()
> ------------------------------------------------
>
> Key: JBIDE-21036
> URL: https://issues.jboss.org/browse/JBIDE-21036
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi
> Affects Versions: 4.3.0.Final
> Reporter: Viacheslav Kabanovich
> Assignee: Viacheslav Kabanovich
> Fix For: 4.3.1.Beta1, 4.4.0.Alpha1
>
>
> java.lang.StackOverflowError is reported in
> http://stackoverflow.com/questions/33301776/an-internal-error-occurred-during-jboss-tools-project-validator
> Infinitely cycling calls are
> org.jboss.tools.common.java.ParametedType.isAssignableTo(ParametedType.java:398) at org.jboss.tools.common.java.ParametedType.isAssignableTo(ParametedType.java:402) at org.jboss.tools.common.java.ParametedType.areTypeParametersAssignableTo(ParametedType.java:430)
> Sample that reproduces the stack trace:
> {code}
> public class B {
>
> static class A1<V extends A1<V>> {
> }
> static class A2<T extends A2<T>> extends A1<A2<T>> {
> }
>
> static class A3 extends A2<A3> {
> }
> @Inject
> A1<A2<A3>> q;
> }
> {code}
> One more infinite cycle in ParametedType.equals():
> at org.jboss.tools.common.java.ParametedType.equals(ParametedType.java:171)
> can be reproduced with sample:
> {code}
> public class A<V extends A.B<V>> {
> static class B<V1 extends A.B<V1>> {
> }
> @Inject
> A.B<V> s2;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list