openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From awh...@apache.org
Subject svn commit: r431131 - /incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/Configurations.java
Date Sun, 13 Aug 2006 01:49:02 GMT
Author: awhite
Date: Sat Aug 12 18:49:01 2006
New Revision: 431131

URL: http://svn.apache.org/viewvc?rev=431131&view=rev
Log:
Anchor token fix.


Modified:
    incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/Configurations.java

Modified: incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/Configurations.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/Configurations.java?rev=431131&r1=431130&r2=431131&view=diff
==============================================================================
--- incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/Configurations.java
(original)
+++ incubator/openjpa/trunk/openjpa-lib/src/main/java/org/apache/openjpa/lib/conf/Configurations.java
Sat Aug 12 18:49:01 2006
@@ -523,7 +523,7 @@
 
         String path = resource;
         String anchor = null;
-        int idx = path.indexOf('.');
+        int idx = path.indexOf('#');
         if (idx != -1) {
             if (idx < path.length() - 1)
                 anchor = path.substring(idx + 1);
@@ -596,7 +596,7 @@
         String anchor = null;
         try {
             String path = file.getCanonicalPath();
-            int idx = path.indexOf('.');
+            int idx = path.indexOf('#');
             if (idx != -1) {
                 if (idx < path.length() - 1)
                     anchor = path.substring(idx + 1);



Mime
View raw message