ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

StackOverflowError in TypeUtils.typeContainsTypeParameter() #542

Closed tombentley closed 9 years ago

tombentley commented 9 years ago

Code is in the js-error branch in my fork of ceylon-sdk. The same code works fine with the JVM compiler, but with JS I get this

Caused by: java.lang.StackOverflowError at com.redhat.ceylon.compiler.typechecker.model.Util.isOverloadedVersion(Util.java:162) at com.redhat.ceylon.compiler.typechecker.model.Unit.getAbstraction(Unit.java:135) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getDeclaration(ProducedType.java:101) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getDeclaration(ProducedType.java:39) at com.redhat.ceylon.compiler.typechecker.model.ProducedReference.getTypeArguments(ProducedReference.java:48) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getSatisfiedTypes(ProducedType.java:1837) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getSupertypes(ProducedType.java:744) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getSupertypes(ProducedType.java:742) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getSupertypes(ProducedType.java:742) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getSupertypes(ProducedType.java:746) at com.redhat.ceylon.compiler.typechecker.model.ProducedType.getSupertypes(ProducedType.java:730) at com.redhat.ceylon.compiler.js.util.TypeUtils.typeContainsTypeParameter(TypeUtils.java:365) at com.redhat.ceylon.compiler.js.util.TypeUtils.typeContainsTypeParameter(TypeUtils.java:367) at com.redhat.ceylon.compiler.js.util.TypeUtils.typeContainsTypeParameter(TypeUtils.java:367) at com.redhat.ceylon.compiler.js.util.TypeUtils.typeContainsTypeParameter(TypeUtils.java:367) at com.redhat.ceylon.compiler.js.util.TypeUtils.typeContainsTypeParameter(TypeUtils.java:367)

chochos commented 9 years ago

Is this still happening? I mean with all the model, typechecker and compiler changes lately...

chochos commented 9 years ago

@tombentley can you still reproduce this?

tombentley commented 9 years ago

Absolutely no idea, and given the lack of a small reproducible test case I think we should close it.