You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatedefErrorStaticModule(sym: Symbol) =thrownewScalaReflectionException(s"$sym is a static module, use reflectModule on a RuntimeMirror to obtain its ModuleMirror")
130
130
privatedefErrorNotMember(sym: Symbol, owner: Symbol) =thrownewScalaReflectionException(s"expected a member of $owner, you provided ${sym.kindString}${sym.fullName}")
131
131
privatedefErrorNotField(sym: Symbol) =thrownewScalaReflectionException(s"expected a field or an accessor method symbol, you provided $sym")
sm"""Scala field ${sym.name} isn't represented as a Java field, neither it has a Java accessor method
134
+
|note that private parameters of class constructors don't get mapped onto fields and/or accessors,
135
+
|unless they are used outside of their declaring constructors.""")
137
136
privatedefErrorSetImmutableField(sym: Symbol) =thrownewScalaReflectionException(s"cannot set an immutable field ${sym.name}")
138
137
privatedefErrorNotConstructor(sym: Symbol, owner: Symbol) =thrownewScalaReflectionException(s"expected a constructor of $owner, you provided $sym")
139
138
privatedefErrorFree(member: Symbol, freeType: Symbol) =thrownewScalaReflectionException(s"cannot reflect ${member.kindString}${member.name}, because it's a member of a weak type ${freeType.name}")
0 commit comments