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 157960 - Struts Action File Template - Modifier Order correction
Summary: Struts Action File Template - Modifier Order correction
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: pslechta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-05 02:22 UTC by adam_myatt
Modified: 2009-05-13 14:22 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 adam_myatt 2009-02-05 02:22:03 UTC
Correct the order of modifiers for the 'SUCCESS' forward in the Struts Action file template:

    /* forward name="success" path="" */
    private final static String SUCCESS = "success";

Should be:

    /* forward name="success" path="" */
    private static final String SUCCESS = "success";

This is based on the Java Language specification in section 8.3.1 detailed here: 
http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html

Fixing this will result in fewer static analysis warning generated by tools like Checkstyle for people who use the file 
templates to generate Struts Actions.
Comment 1 pslechta 2009-05-13 14:22:49 UTC
Fixed.

http://hg.netbeans.org/main/rev/e29e85711f7e