We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f11a1e6 commit 3781ba2Copy full SHA for 3781ba2
spring-beans/src/main/java/org/springframework/beans/propertyeditors/PathEditor.java
@@ -103,7 +103,7 @@ public void setAsText(String text) throws IllegalArgumentException {
103
if (resource == null) {
104
setValue(null);
105
}
106
- else if (nioPathCandidate && !resource.exists()) {
+ else if (nioPathCandidate && (!resource.isFile() || !resource.exists())) {
107
setValue(Paths.get(text).normalize());
108
109
else {
0 commit comments