cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From coli...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom CompilingClassLoader.java
Date Wed, 28 Jan 2004 17:48:59 GMT
coliver     2004/01/28 09:48:59

  Modified:    src/java/org/apache/cocoon/components/flow/javascript/fom
                        CompilingClassLoader.java
  Log:
  Handle source for inner classes
  
  Revision  Changes    Path
  1.6       +6 -1      cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java
  
  Index: CompilingClassLoader.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- CompilingClassLoader.java	31 Dec 2003 05:50:12 -0000	1.5
  +++ CompilingClassLoader.java	28 Jan 2004 17:48:59 -0000	1.6
  @@ -166,6 +166,11 @@
       }
   
       private Source getSource(String className) {
  +        int dollar = className.indexOf('$');
  +        if (dollar > 0) {
  +            // inner class: use the parent
  +            className = className.substring(0, dollar);
  +        }
           synchronized (sourcePath) {
               Iterator iter = sourcePath.iterator();
               while (iter.hasNext()) {
  
  
  

Mime
View raw message