geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/service ParserUtil.java
Date Sat, 27 Sep 2003 17:22:16 GMT
adc         2003/09/27 10:22:16

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel/service
                        ParserUtil.java
  Log:
  ParserUtil.loadClass has a bug when loading the classes of user friendly
  type[] syntax with more than one dimension.
  
  Thanks to Sivasundaram Umapathy.
  
  Revision  Changes    Path
  1.2       +2 -2      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/service/ParserUtil.java
  
  Index: ParserUtil.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/service/ParserUtil.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ParserUtil.java	8 Sep 2003 04:38:35 -0000	1.1
  +++ ParserUtil.java	27 Sep 2003 17:22:16 -0000	1.2
  @@ -292,7 +292,7 @@
               int arrayDimension = 0;
               String componentClassName = className;
               while (componentClassName.endsWith("[]")) {
  -                componentClassName = componentClassName.substring(0, className.length()
- 2);
  +                componentClassName = componentClassName.substring(0, componentClassName.length()
- 2);
                   arrayDimension++;
               }
   
  
  
  

Mime
View raw message