History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-27283
Type: Bug Bug
Status: Reopened Reopened
Priority: Normal Normal
Assignee: Anna Kozlova
Reporter: Alexander Chernikov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Code coverage: IDEA runner: in particular case coverage colors after undo are not the same as before modification

Created: 11 Jun 08 20:05   Updated: 17 Jul 08 13:50
Component/s: Code Coverage
Fix Version/s: Diana Final

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 8,454
Fixed in build: 7,894


 Description  « Hide
Provide the following packages and classes.
Class big.on.Master:
package big.on;

import big.off.Prauxy;

public class Master {
	public static void main(String[] args) {
		Auxy auxy = new Auxy();
		auxy.method();
		auxy.method();
		auxy.method();

		Prauxy prauxy = new Prauxy();
		prauxy.method();
	}
}

Class big.on.Auxy:

package big.on;

public class Auxy {
	public void method() {
		int i = 0;
		i++;
	}
}

Class big.off.Prauxy:

package big.off;

public class Prauxy {
	public void method() {
		int i = 0;
		i++;
	}
}

Coverage settings: main class is Master, big.on package is included, big.off package is not.
Run, get colors. All lines are green.
Erase two calls of auxy.method(); in Master.main(). All lines are still green.
Copy all (2) lines of Auxy.method() body.
Select all lines of Master.main(). Paste.
Undo. See that there is 1 red line.

I'm not sure how mush is it serious.



 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 05 Jul 08 19:11
8533: bug repeats, but after "refresh" (e.g. re-selecting the same coverage results in chooser, colors are repaired).
Waiting for the fix of IDEADEV-27874.

Alexander Chernikov - 11 Jul 08 19:23
8559: the case from description occurs again.
After reloading coverage results by Ctrl+Alt+F6 the colors are correctly restored.