Created
February 17, 2014 23:09
-
-
Save christophercurrie/9061132 to your computer and use it in GitHub Desktop.
Lazy val synchronization bitmap is not synthetic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to Scala version 2.11.0-M8 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_25). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> class Foo { lazy val foo = "bar" } | |
defined class Foo | |
scala> classOf[Foo].getDeclaredFields | |
res0: Array[java.lang.reflect.Field] = Array(private java.lang.String Foo.foo, private volatile boolean Foo.bitmap$0) | |
scala> res0.last.isSynthetic | |
res1: Boolean = false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment