bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/25344] New: FileChannel.lock throws InternalError instead


From: greenrd at gcc dot gnu dot org
Subject: [Bug classpath/25344] New: FileChannel.lock throws InternalError instead of IOException if no locks available (ENOLCK)
Date: 11 Dec 2005 01:11:58 -0000

This is with SableVM version 1.13-pre1, but looking at the source code, the
issue still exists in classpath head.

If the fcntl is unable to obtain a lock (error code ENOLCK), FileChannel.lock
throws a java.lang.InternalError instead of a java.io.IOException. (It is
thrown in the native code in
native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c )

I believe InternalError should be used only for JVM bugs, not for operating
system resource failures.


-- 
           Summary: FileChannel.lock throws InternalError instead of
                    IOException if no locks available (ENOLCK)
           Product: classpath
           Version: 0.20
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: greenrd at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25344





reply via email to

[Prev in Thread] Current Thread [Next in Thread]