costin      01/06/09 14:17:49

  Modified:    jasper34/generator/org/apache/jasper34/core Constants.java
  Log:
  Small ( hacky ) fix: use the resources from runtime, StringManager
  is in the common class loader and it expects all resources to be in
  the same loader.
  
  There are few other limitations in StringManager, we should fix it - but
  for now it works well enough.
  
  Revision  Changes    Path
  1.4       +3 -1      
jakarta-tomcat-jasper/jasper34/generator/org/apache/jasper34/core/Constants.java
  
  Index: Constants.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-jasper/jasper34/generator/org/apache/jasper34/core/Constants.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Constants.java    2001/06/06 06:27:37     1.3
  +++ Constants.java    2001/06/09 21:17:48     1.4
  @@ -197,8 +197,10 @@
       private static StringManager resources;
       
       private static void initResources() {
  +     // XXX bug in StringManager and ResourceBundle, class loader
  +     // can't be passed !
           resources = StringManager.getManager(
  -                    "org.apache.jasper.resources");
  +                    "org.apache.jasper34.runtime.res");
       }
   
       /**
  
  
  

Reply via email to