Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifest of f bounded Java class results in typer stackoverflow #9276

Open
scabug opened this issue Apr 22, 2015 · 1 comment
Open

manifest of f bounded Java class results in typer stackoverflow #9276

scabug opened this issue Apr 22, 2015 · 1 comment
Labels
f-bounds fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) java interop reflection regression
Milestone

Comments

@scabug
Copy link

scabug commented Apr 22, 2015

import scala.reflect.Manifest

class Test {
   implicitly[Manifest[Enum[_]]]
}

This results in:

Exception in thread "main" java.lang.StackOverflowError
	at scala.tools.nsc.typechecker.Contexts$Context.nextOuter(Contexts.scala:606)
	at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:837)
	at scala.tools.nsc.typechecker.Contexts$Context.withOuter$1(Contexts.scala:839)
	at scala.tools.nsc.typechecker.Contexts$Context.implicitss(Contexts.scala:860)

Since:

scala/scala#3471 / #6169

@scabug
Copy link
Author

scabug commented Apr 22, 2015

Imported From: https://issues.scala-lang.org/browse/SI-9276?orig=1
Reporter: @retronym
Affected Versions: 2.11.0
See #6169

@scabug scabug added this to the Backlog milestone Apr 7, 2017
@SethTisue SethTisue added the fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) label Oct 29, 2023
@SethTisue SethTisue changed the title manifest of f bounded java class results in typer stackoverflow manifest of f bounded class results in typer stackoverflow Oct 29, 2023
@SethTisue SethTisue changed the title manifest of f bounded class results in typer stackoverflow manifest of f bounded Java class results in typer stackoverflow Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
f-bounds fixed in Scala 3 This issue does not exist in the Scala 3 compiler (https://github.com/lampepfl/dotty/) java interop reflection regression
Projects
None yet
Development

No branches or pull requests

3 participants