Community
Participate
Working Groups
Using 3.1 M6. Consider following test case: public class Test { int test; void foo() { System.out.println("String with / (slash)"+ test); } } In println(...) method argument, put caret in "test" and hit F3, you get error message in status bar: "Current text selection does not resolve to a Java element" although it does!
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.