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

checkinit build failure after SI-6387 #7341

Closed
scabug opened this issue Apr 8, 2013 · 3 comments
Closed

checkinit build failure after SI-6387 #7341

scabug opened this issue Apr 8, 2013 · 3 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 8, 2013

Test case:

scala-hash origin/2.10.x -nc -Xcheckinit
[info] origin/2.1 => /Users/jason/usr/scala-v2.10.1-223-g53e031f
Welcome to Scala version 2.10.2-20130407-091443-53e031f553 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_37).
Type in expressions to have them evaluated.
Type :help for more information.

scala> object terminal0 {
     |   private var cache: Any = ()
     |   def returning(f: () => Unit) = ()
     |   def foo {
     |     returning(() => cache = ())
     |   }
     |
     |   def apply(): Any = {
     |     cache
     |   }
     | }
defined module terminal0

scala> terminal0()
scala.UninitializedFieldError: Uninitialized field: <console>: 8
	at terminal0$.cache(<console>:8)

@eugene: Can you please submit a reversion PR, and include this test case? It should be a run test case, with -Xcheckinit in the .flags file. We can then figure out what's really going on without the pressure of a broken build.

@scabug
Copy link
Author

scabug commented Apr 8, 2013

Imported From: https://issues.scala-lang.org/browse/SI-7341?orig=1
Reporter: @retronym
Affected Versions: 2.10.2-RC1, 2.11.0-M3
Other Milestones: 2.11.0-M3
See #6387

@scabug
Copy link
Author

scabug commented Apr 8, 2013

@retronym said:
scala/scala#2367

1 similar comment
@scabug
Copy link
Author

scabug commented Apr 9, 2013

@retronym said:
scala/scala#2367

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants