add methods to Scala Wrapper (2) and find scalac bug