Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lazy val synchronization bitmap is not synthetic
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