java/102888: Diablo 1.5.0 throws FileNotFoundException when opening
files in rws mode
Knut Anders Hatlen
kahatlen at gmail.com
Tue Sep 5 07:10:26 UTC 2006
>Number: 102888
>Category: java
>Synopsis: Diablo 1.5.0 throws FileNotFoundException when opening files in rws mode
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-java
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Sep 05 07:10:24 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Knut Anders Hatlen
>Release: FreeBSD 6.1-RELEASE-p5 i386
>Organization:
>Environment:
System: FreeBSD ugle.hatlen.net 6.1-RELEASE-p5 FreeBSD 6.1-RELEASE-p5 #4: Mon Sep 4 22:19:20 CEST 2006 root at ugle.hatlen.net:/usr/obj/usr/src/sys/KAH-KERNEL-I386 i386
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build diablo-1.5.0-b00)
Java HotSpot(TM) Client VM (build diablo-1.5.0_07-b00, mixed mode)
>Description:
With Diablo 1.5.0_07-b00, opening an existing file in rws mode causes
a FileNotFoundException with message text "file exists". This does not
happen on Solaris or Linux, nor does it happen on FreeBSD with jvm
version 1.4.2-p8.
Opening files in rw mode or rwd mode does not cause any
problem. Opening nonexistent files in rws mode also works fine.
>How-To-Repeat:
Run a java application which executes the following code (or similar):
File tmp = File.createTempFile("xxx", null);
RandomAccessFile raf = new RandomAccessFile(tmp, "rws");
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-java
mailing list