Community
Participate
Working Groups
When I select multiple problems & try to use 'Quick Fix', then it gives message - 'The selected problems do not have a common applicable quick fix' But if I try to apply quick fix individually on each problem then I get one fix only, for all the problems. So don't know, if there is only one fix then why it can't be applied to all the problems in one click. Please suggest as I have got 27000 problems to fix using Quick Fix.
Any suggestions please.
Easy to reproduce: paste this code: public interface ITest { void body1() { } void body2() { } } Observe 2 identical problems in Problems view: Abstract methods do not specify a body Abstract methods do not specify a body Select both problems in Problems view, right-click -> Quick Fix Observed: Dialog box: The selected problems do not have common applicable common fix Expected: Suggest common fix for the two errors (make static/make default/remove body) just like it appears for Quick Fix on the individual errors.
Still reproducible in 4.14
I see it in 4.16, also. Is it a bug or a normal behaviour? As I tried like - public interface interfaceTest { private int num; private int num1; private int num2; private int num3; private int num4; private int num5; } And if see quickfix for each individually then quick suggest the same solution - Remove the invalid modifier, then I should be able to do the same by selecting all the errors also. This is one simple & a few, still it is not applying the fix to remove 'private' from all the error lines & I need to apply the same for each. But I got thousands with same quick fix suggestions then it is not possible to select & apply quick fix for each one by one. At least I should be able to apply the fix for group of few hundred errors at least. Please suggest.