Reproducing Eclipse WTP Bug#: 173912

9:33 PM / Comments (2) / by Kevin Vu

This is my first time I try to reproduce an Eclipse WTP Bug and It was successfully reproduced the same just as Ian He, the reporter, reported.

Steps To Reproduce: (Bug#: 173912)
1. Create a dynamic web app named app1. Aim it at an APP server.
2. Create a class, com.whatever.MyClass, add the following methid, and save and
public String getGreeting() {
return "Number one!";
3. Create a JSP, index.jsp, in the project's Web Content folder. Add the
following use bean directive just before the "META" tags:
<jsp:useBean id="bean" class="com.whatever.MyClass"
Add the following expression in the BODY:
4. Create a nother dynamic web project named app2.
5. Create a jsp index.jsp in app2 and also create com.whatever.MyClass and
change "Number one!" to "Number two!".
6. Set a breakpoint on the bean expression in app2's index.jsp.
7. Add both projects to the server.
8. Restart the server in debug mode.
9. Run app2's index.jsp on the server.
10. When the breakpoint is hit, select "bean" in the Variables view in the
debugger. Do <context menu>-->Open declared type. The Java editor will open,
but on app1's com.whatever.MyClass.


Anonymous @ January 26, 2009 at 12:42 PM


Jordan wanted only to show us, that there are instances when the bug cannot be reproduced. This does not mean that the bug is not there.

He only wanted to let us start the process of reproduce bugs and to give us incentives in doing so.

Kevin Vu @ January 26, 2009 at 3:34 PM

Sorry, I misunderstood. I corrected my post. I just thought there might have been something wrong with the computer in he lab and just meant to pointed it out.