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
However, here's what I get for getPrefixLength in java.io.File (which is package private):
Welcome to Scala version 2.10.0 (JavaHotSpot(TM) 64-BitServerVM, Java1.7.0_09).
Type in expressions to have them evaluated.
Type:help for more information.
scala>importreflect.runtime.universe._importreflect.runtime.universe._
scala>valt= weakTypeOf[java.io.File]
t: reflect.runtime.universe.Type= java.io.File
scala>valm= t.member(newTermName("getPrefixLength"))
m: reflect.runtime.universe.Symbol= method getPrefixLength
scala> m.isPrivate
res0:Boolean=false
scala> m.isProtected
res1:Boolean=false
scala> m.privateWithin
res2: reflect.runtime.universe.Symbol= <none>
scala> m.isPublic
res3:Boolean=true
The text was updated successfully, but these errors were encountered:
The documentation for privateWithin says:
However, here's what I get for getPrefixLength in java.io.File (which is package private):
The text was updated successfully, but these errors were encountered: