Skip to content

Commit d3d1550

Browse files
authored
Merge pull request #1781 from jacobhjkim/reflection-repl-error
Update reflection overview.md
2 parents 029687f + 6cb611a commit d3d1550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_overviews/reflection/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ available that are loaded by the current classloader, including class
130130

131131
The second step involves obtaining a `ClassMirror` for class `Person` using
132132
the `reflectClass` method. The `ClassMirror` provides access to the
133-
constructor of class `Person`.
133+
constructor of class `Person`. (If this step causes an exception, the easy workaround is to use these flags when starting REPL. `scala -Yrepl-class-based:false`)
134134

135135
scala> val ctor = ru.typeOf[Person].decl(ru.termNames.CONSTRUCTOR).asMethod
136136
ctor: scala.reflect.runtime.universe.MethodSymbol = constructor Person

0 commit comments

Comments
 (0)