title: In Scala, how to override a method that takes a java.util.Map
body: <p>The Java class I am trying to subclass has a method like: </p>
  
  <pre><code>public abstract void foo(Map var1);
  </code></pre>
  
  <p>I can't figure out how to override that method. The Java class I am subclassing from does not use generics. </p>
  
  <p>In Scala I tried:</p>
  
  <pre><code>override def foo(var1:java.util.Map[Int,Int]){ }
  </code></pre>
  
  <p>But the compiler gives me the error message that it overrides nothing..</p>
  
  <p>The heart of the problem is that Scala expects type parameters on the Map, however the Java class doesn't use them.</p>