You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by mi...@apache.org on 2010/07/22 05:49:38 UTC
svn commit: r966496 -
/openjpa/branches/2.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Author: mikedd
Date: Thu Jul 22 03:49:38 2010
New Revision: 966496
URL: http://svn.apache.org/viewvc?rev=966496&view=rev
Log:
OPENJPA-1743: reverting in 2.0.x at least for now.
Modified:
openjpa/branches/2.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
Modified: openjpa/branches/2.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java?rev=966496&r1=966495&r2=966496&view=diff
==============================================================================
--- openjpa/branches/2.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java (original)
+++ openjpa/branches/2.0.x/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/ConfigurationImpl.java Thu Jul 22 03:49:38 2010
@@ -840,14 +840,7 @@ public class ConfigurationImpl
* <code>properties</code> value with the name of a resource.
*/
public void setProperties(String resourceName) throws IOException {
- String anchor = null;
- if (resourceName.indexOf("#") != -1)
- {
- anchor = resourceName.substring(resourceName.lastIndexOf("#") + 1);
- resourceName = resourceName.substring(0,
- resourceName.length() - anchor.length() - 1);
- }
- ProductDerivations.load(resourceName, anchor,
+ ProductDerivations.load(resourceName, null,
getClass().getClassLoader()).setInto(this);
_auto = resourceName;
}