Date: Tue, 5 Sep 2006 09:01:45 +0200 (CEST) From: Knut Anders Hatlen <kahatlen@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: java/102888: Diablo 1.5.0 throws FileNotFoundException when opening files in rws mode Message-ID: <200609050701.k8571jqs002658@ugle.hatlen.net> Resent-Message-ID: <200609050710.k857AOMB017786@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609050701.k8571jqs002658>