title: scala jrebel superclass change
body: <p>I'm using JRebel with Scala and I'm quite frequently experiencing the need for restart of server due to the fact that JRebel is unable to load a class if the superclass was changed. This is done mainly when I change anonymous functions as I can deduce from the JRebel error desription: <br/><code>Class 'mypackage.NewBook$$anonfun$2' superclass was changed from 'scala.runtime.AbstractFunction1' to 'scala.runtime.AbstractFunction2' and could not be reloaded</code>.<br/> Is there any way, how can I design my code to avoid this? Does scala compiler take the functions, numbers them from one as they appear in source code?</p>