Bug 509727 - Quick fix for multiple problems
Summary: Quick fix for multiple problems
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 major with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-27 13:32 EST by Nitin CLA
Modified: 2020-06-27 01:24 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin CLA 2016-12-27 13:32:15 EST
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.
Comment 1 Nitin CLA 2016-12-31 01:40:33 EST
Any suggestions please.
Comment 2 Alexander Zakusylo CLA 2020-01-31 08:13:05 EST
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.
Comment 3 Alexander Zakusylo CLA 2020-01-31 08:14:44 EST
Still reproducible in 4.14
Comment 4 Nitin CLA 2020-06-27 01:24:20 EDT
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.