Summary: | [select] Code select returns null when there's a string including a slash on same line | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Frederic Fusier <frederic_fusier> |
Component: | Core | Assignee: | Frederic Fusier <frederic_fusier> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M7 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Frederic Fusier
2005-04-05 06:34:16 EDT
Workaround is to select entirely and then it works. This issue comes from change for selection in Javadoc. checkSelection method of SelectionEngine has been modified to stop reverting when encountered a '/'. In this case this is not correct as slash is inside a string... Fixed and released in HEAD. Also fix case when there's a '/' on same line. That means that following failing test case will be also fixed: public class Test { int test; void foo() { System.out.println("Line including char with slash"+ '/' + test); } } [jdt-core-internal] Test case added in SelectionJavaModelTests Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD. |