Community
Participate
Working Groups
In the new Servlet wizard, one of the fields the user can enter is the description. This is part of the new Java EE 6 annotations allowed for @WebServlet, but CreateServletTemplateModel.getJavaEE6AnnotationParameters() does not include the description= part of the annotation, and thus that information is lost. The same goes for Filters and Listeners.
This also applies to the initialization parameters- their descriptions are also lost in the annotations.
Created attachment 166076 [details] patch This patch reworks the generation of Servlet 3.0 annotations - now they are generated in a similar way like the EJB 3.0 bean annotations. They are several benefits: - the description attributes are not lost - when they is lots of metadata, the annotations are formatted in a readable way. The patch covers both the @WebServlet and @WebFilter annotations.
Chuck, please review this patch for 3.2 M7.
*** Bug 310453 has been marked as a duplicate of this bug. ***
approve - this is a big change.. I tested some and it seemed ok.
Committed to HEAD and released to build.
Closing