dgraham     2003/06/27 17:20:07

  Modified:    src/share/org/apache/struts/util RequestUtils.java
  Log:
  Synchronized getModulePrefixes() method for PR# 21091.  I left a TODO
  note to improve the method for 1.2.
  
  Revision  Changes    Path
  1.105     +8 -6      
jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java
  
  Index: RequestUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v
  retrieving revision 1.104
  retrieving revision 1.105
  diff -u -r1.104 -r1.105
  --- RequestUtils.java 20 Jun 2003 04:09:57 -0000      1.104
  +++ RequestUtils.java 28 Jun 2003 00:20:07 -0000      1.105
  @@ -1892,8 +1892,10 @@
        * @return an array of module prefixes
        * @since Struts 1.1
        */
  -    public static String[] getModulePrefixes(ServletContext context) {
  -
  +    public synchronized static String[] getModulePrefixes(ServletContext context) {
  +        // TODO Move prefix list initialization to ActionServlet.init() and 
unsynchronize
  +        // this method in Struts 1.2 
  +        
           String prefixes[] = (String[]) context.getAttribute(PREFIXES_KEY);
           if (prefixes != null) {
               return (prefixes);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to