Community
Participate
Working Groups
It opens a file with empty source code in Linux gedit. -- Configuration Details -- Product: Eclipse 1.2.0.20090619-0620 (org.eclipse.epp.package.java.product) Installed Features: org.eclipse.jdt 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ
I think we need more information about this as it routinely works, as well as confirmation that it affects the 2010 release. In general we're not fixing bugs in 2009 releases. Can it be reproduced with Helios SR1? Is it specific to the Web Page Editor or does it also happen with the Java Editor? What *should* happen instead of what's observed?
Created attachment 184676 [details] A screenshot for the result of F3 key (Open Declaration)
The bug is reproduced with Helios SR1, see the "screenshot1*" attached for the result of the F3 key press on "request" identifier in index.jsp in the root of the webapp. Example index.jsp has content <% request.getScheme(); out.println(); %> If we have a regular .java file in a method with a formal parameter "HttpServletRequest request", and with a mention "request" of this formal parameter, on F3, the Java editor moves the caret to a formal parameter declaration (i.e. to the "request" instance in a method header). What the JSP editor should do, I don't know. But displaying an *empty* source .java file in OS default plaintext edit is definitely *not* a declaration for the request formal parameter. So this is a bug. Ultimately, it *may* compile the JSP with some JSP compiler (or with target JSP servlet container JSP compiler), and show the formal parameter declaration there. But that sounds terrible. I don't propose implementing this---maybe just disabling F3 (Open Declaration) is better than implementing the full-fledged way... You please decide.
*** Bug 331843 has been marked as a duplicate of this bug. ***
- Exactly what *is* observed? - When we have index.jsp with content <% request.getScheme(); out.println(); %> and position the caret inside "request" or "out" identifiers, and press F3 (Open Declaration), then Eclipse opens gedit (in Ubintu Linux) with some non-existing .java file located in our Eclipse project. See the screenshot to see this .java file name. That's incorrect.
This occurs because it is a local variable within the translated source. If you click on out() or getScheme() instead, you'll be taken to their declarations in their respective classes. Changes checked in so the hyperlink doesn't work if it were to take you to the translation of the JSP.