geronimo-xbean-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r563737 - /geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/FileEditor.java
Date Wed, 08 Aug 2007 04:20:18 GMT
Author: dblevins
Date: Tue Aug  7 21:20:17 2007
New Revision: 563737

URL: http://svn.apache.org/viewvc?view=rev&rev=563737
Log:
xbean-reflect shouldn't be attempting to resolve file paths.

Modified:
    geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/FileEditor.java

Modified: geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/FileEditor.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/FileEditor.java?view=diff&rev=563737&r1=563736&r2=563737
==============================================================================
--- geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/FileEditor.java
(original)
+++ geronimo/xbean/trunk/xbean-reflect/src/main/java/org/apache/xbean/propertyeditor/FileEditor.java
Tue Aug  7 21:20:17 2007
@@ -17,7 +17,6 @@
 package org.apache.xbean.propertyeditor;
 
 import java.io.File;
-import java.io.IOException;
 
 /**
  * A property editor for {@link File}.
@@ -36,10 +35,6 @@
      * @throws PropertyEditorException An IOException occured.
      */
     protected Object toObjectImpl(String text) {
-        try {
-            return new File(text).getCanonicalFile();
-        } catch (IOException e) {
-            throw new PropertyEditorException(e);
-        }
+        return new File(text);
     }
 }



Mime
View raw message