commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgra...@apache.org
Subject cvs commit: jakarta-commons/dbutils/xdocs changes.xml
Date Sun, 03 Oct 2004 16:43:44 GMT
dgraham     2004/10/03 09:43:44

  Modified:    dbutils/src/java/org/apache/commons/dbutils QueryLoader.java
               dbutils/xdocs changes.xml
  Log:
  Use current class' ClassLoader in loadQueries().  PR: 31169
  
  Revision  Changes    Path
  1.5       +1 -1      jakarta-commons/dbutils/src/java/org/apache/commons/dbutils/QueryLoader.java
  
  Index: QueryLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbutils/src/java/org/apache/commons/dbutils/QueryLoader.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- QueryLoader.java	3 Oct 2004 16:14:44 -0000	1.4
  +++ QueryLoader.java	3 Oct 2004 16:43:44 -0000	1.5
  @@ -89,7 +89,7 @@
        * @since DbUtils 1.1
        */
       protected Map loadQueries(String path) throws IOException {
  -        InputStream in = QueryLoader.class.getResourceAsStream(path);
  +        InputStream in = getClass().getResourceAsStream(path);
   
           if (in == null) {
               throw new IllegalArgumentException(path + " not found.");
  
  
  
  1.8       +4 -0      jakarta-commons/dbutils/xdocs/changes.xml
  
  Index: changes.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/dbutils/xdocs/changes.xml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- changes.xml	3 Oct 2004 16:14:44 -0000	1.7
  +++ changes.xml	3 Oct 2004 16:43:44 -0000	1.8
  @@ -40,6 +40,10 @@
   
       <release version="1.1-dev" date="in CVS">
         <action dev="dgraham" type="update">
  +        Use current class' ClassLoader instead of QueryLoader's ClassLoader
  +        in loadQueries().  PR: 31169
  +      </action>
  +      <action dev="dgraham" type="update">
           Made QueryLoader.loadQueries() protected so subclasses can use query
           repositories other than properties files.  PR: 31460        
         </action>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message