Bug 5351 - incorrect bracket matching
Summary: incorrect bracket matching
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-30 08:19 EST by Adam Kiezun CLA
Modified: 2001-11-20 08:41 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2001-10-30 08:19:35 EST
20011025
public class A {
	void n(){
		int[] o= new int [/*]*/0];
	}
}

1. opening bracket is matched with the one in comment (wrong)
2. bracket in comment is matched with the opening one (wrong) 
3. closing bracket (outside of comment) is matched with the opening one 
(correct)
Comment 1 Kai-Uwe Maetzel CLA 2001-11-20 08:41:50 EST
Fixed scenario 1). Scenario 2) is actually intended. Even when being inside a 
comment the matching bracket is of interest independent of whether the match is 
inside or outside of the comment.
Build > 20011120.