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

Summary: Struts Action File Template - Modifier Order correction
Product: javaee Reporter: adam_myatt <adam_myatt>
Component: StrutsAssignee: pslechta <pslechta>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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