Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 376251

Summary: Strange behavior when double clicking on closing curly brace
Product: [Eclipse Project] JDT Reporter: Marc-AndrĂ© Laperle <malaperle>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: deepakazad
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Marc-André Laperle CLA 2012-04-06 09:05:58 EDT
public class TestDoubleClick {
	public void bar() {
/* double click after the next bracket*/}
	
	public void foo() {
	}
}


1. Create a project with the code above
2. Double click right after the curly brace that closes the foo method
3. The next line and 'public' from the foo method gets selected

I would expect it to either do nothing or select the content of the bar method (CDT does the latter).

I'm using JDT 3.8.0.v20111130 (from 4.2 I20120307-2200) but it's probably like that in previous versions too.
Comment 1 Deepak Azad CLA 2012-04-08 06:58:46 EDT
The underlying cause is same as bug 372516.

*** This bug has been marked as a duplicate of bug 372516 ***