Commits

Anonymous committed 30b6fec

DependencyException during configuration when devMode constant not set
o marking devMode as not required

Issue Number: XW-513

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/2.0@1508e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits f0a8c8f
  • Branches 2.0, xwork_2_0_7

Comments (0)

Files changed (2)

File src/java/com/opensymphony/xwork2/interceptor/ParametersInterceptor.java

     Set<Pattern> excludeParams = Collections.EMPTY_SET;
     static boolean devMode = false;
     
-    @Inject("devMode")
+    @Inject(value = "devMode", required = false)
     public static void setDevMode(String mode) {
         devMode = "true".equals(mode);
     }

File src/java/com/opensymphony/xwork2/util/OgnlValueStack.java

         return accessor;
     }
     
-    @Inject("devMode")
+    @Inject(value = "devMode", required = false)
     public static void setDevMode(String mode) {
         devMode = "true".equals(mode);
     }