Skip to content

Instantly share code, notes, and snippets.

@christophercurrie
Created February 17, 2014 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophercurrie/9061132 to your computer and use it in GitHub Desktop.
Save christophercurrie/9061132 to your computer and use it in GitHub Desktop.
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