Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Commons Wiki" for 
change notification.

The "DBCP/Hibernate" page has been changed by Guenther Demetz.
The comment on this change is: bugfix in code: substituted "String key = 
(String) iter.next();" with "String key = (String) entry.getKey();", this bug 
caused a runtime ClassCastException .
http://wiki.apache.org/commons/DBCP/Hibernate?action=diff&rev1=6&rev2=7

--------------------------------------------------

              // Copy all DBCP properties removing the prefix
              for (Iterator iter = props.entrySet().iterator() ; iter.hasNext() 
;) {
                  Map.Entry entry = (Map.Entry) iter.next();
-                 String key = (String) iter.next();
+                 String key = (String) entry.getKey();
                  if (key.startsWith(PREFIX)) {
                      String property = key.substring(PREFIX.length());
                      String value = (String) entry.getValue();

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to