This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 117977 - Code for "Send JMS" message generated in bad (wrong,IMHO) location in Servlet file.
Summary: Code for "Send JMS" message generated in bad (wrong,IMHO) location in Servlet...
Status: RESOLVED DUPLICATE of bug 129262
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Sun All
: P3 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-06 00:59 UTC by _ pcw
Modified: 2008-04-16 17:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2007-10-06 00:59:26 UTC
Create a J2EE 1.4 EJB Jar with an MDB.
Create a J2EE 1.4 Web App with a servlet.

In the servlet editor pane, invoke Enterprise Resources | Send JMS Message from editor popup menu.
The code to send the message is generated inside the editor fold for "HTTP Servlet Methods".

Problems:

1) This code does not belong here, as it's not an HTTP Servlet Method.
2) The code generated includes a skeleton method where the user will insert the code to create and send the message, but
this method is empty and has a return value and thus is _invalid_ but the error is hidden because the editor fold is closed.

It should have been generated outside (probably just above) the HTTP Servlet Method block, _above_ the initial
<editor-fold> comment.

This problem probably exists in JavaEE5 too, but that path is probably blocked by issue 107647 for now.
Comment 1 pslechta 2008-04-16 17:44:26 UTC
Duplicate of issue that was already fixed.

*** This issue has been marked as a duplicate of 129262 ***