Quick fix to make classes abstract / implement a method stub
Nothing is suggested when you try a quick fix (ctrl + f1) when a method is not defined for a trait.
Example:
Expected behavior: the red line should show up under B and should suggest to make B either abstract or create a stub for the missing method (def a in the example)
Example:
object Test extends App{
trait A {
def a
}
class B extends A //quick fix doesnt work for this
}
Expected behavior: the red line should show up under B and should suggest to make B either abstract or create a stub for the missing method (def a in the example)
Leave a comment
on 2011-08-03 04:39 *
By Fredrik Ekholdt
Description changed from Nothing is suggested when y... to Nothing is suggested when y...
on 2011-08-15 08:11 *
By Iulian Dragos
Type changed from Defect to Enhancement
Milestone set to Enhancements
on 2012-01-31 03:09 *
By skyluc
Version changed from 2.0.0-beta09-29 to 2.0.0-final-29
Assigned to changed from Mirco Dotta to -none-
Component changed from None to Editor
Status changed from New to Accepted
on 2014-04-26 08:12 *
By Simon Schäfer
Component changed from Editor to Quick Fix
Eclipse version changed from Indigo to Kepler - Eclipse 4.3
Version changed from 2.0.0-final-29 to 3.0.2-210
Summary changed from quick fix doesn‘t work for undefined methods in traits when mixing in traits with classes to Quick fix to make classes abstract / implement a method stub
Description changed from Nothing is suggested when y... to Nothing is suggested when y...