You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/09/26 20:12:48 UTC
[commons-vfs] branch master updated: Remove workaround for JDK BUG:
6192331 which was fixed way back in Java 6:
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6192331
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git
The following commit(s) were added to refs/heads/master by this push:
new e7d33d4 Remove workaround for JDK BUG: 6192331 which was fixed way back in Java 6: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6192331
e7d33d4 is described below
commit e7d33d439959e47acca33e1513ad8733bb890ec8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Sep 26 16:12:43 2020 -0400
Remove workaround for JDK BUG: 6192331 which was fixed way back in Java
6: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6192331
---
.../main/java/org/apache/commons/vfs2/provider/local/LocalFile.java | 4 +---
src/changes/changes.xml | 3 +++
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
index 05c9f2a..96b8e53 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
@@ -139,9 +139,7 @@ public class LocalFile extends AbstractFileObject<LocalFileSystem> {
*/
@Override
protected FileType doGetType() throws Exception {
- // JDK BUG: 6192331
- // if (!file.exists())
- if (!file.exists() && file.length() < 1) {
+ if (!file.exists()) {
return FileType.IMAGINARY;
}
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index f2e98bd..d184d6a 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -104,6 +104,9 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="VFS-570" dev="ggregory" due-to="garpinc, Gary Gregory" type="add">
Add HDFS write support #114.
</action>
+ <action dev="ggregory" due-to="Gary Gregory" type="fix">
+ Remove workaround for JDK BUG: 6192331 which was fixed way back in Java 6: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=6192331
+ </action>
<!-- UPDATES -->
<action issue="VFS-755" dev="ggregory" due-to="Gary Gregory" type="update">
Update org.apache.httpcomponents:httpclient from 4.5.10 to 4.5.11.