blob: 8e5e8831c14495e6c994d3649ec13ae9be7f46f5 (
plain) (
tree)
|
|
object testBuf {
class mystream extends java.io.BufferedOutputStream(new java.io.FileOutputStream("/dev/null")) {
def w( x:String ):Unit = {
val foo = new Array[Byte](2);
// write( byte[] ) is defined in FilterOutputStream, the superclass of BufferedOutputStream
super.write( foo ); // error
super.write( foo, 0, foo.length ); // this works however
}
}
}
|