[Bug java/20684] New: FileChannelImpl.java fails to sync filedescriptor on force() invocation

2005-03-29 Thread martin at egholm-nielsen dot dk
The implementation of "java.nio.channels.FileChannel" in present CVS head (as of
2005-03-29) "gcc/libjava/gnu/java/nio/channels/FileChannelImpl.java" does not
obey the contract for #force(boolean), which states that is should
flush/synchronize the channel's file with the storage device.

However, the implementation (in Revision 1.6.32.2, at least) does nothing like 
it:

  public void force (boolean metaData) throws IOException
  {
if (!isOpen ())
  throw new ClosedChannelException ();
  }

-- 
   Summary: FileChannelImpl.java fails to sync filedescriptor on
force() invocation
   Product: gcc
   Version: 4.0.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: java
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martin at egholm-nielsen dot dk
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org,konqueror at gmx dot de


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


[Bug libgcj/23288] New: java.lang.Class's #getPackage() returns null

2005-08-08 Thread martin at egholm-nielsen dot dk
The following code illustrates that java.lang.Class's method getMethod() returns
null. (The source for Class.java in 3.4.3 actually proves that it is
gnu.gcj.runtime.VMClassLoader that does it...)

--- 8< 8< 8< ---
package men.gcjpackage;

public class TestPackage
{
  public static void main(String[] args)
  {
System.out.println("ClassLoader: " + TestPackage.class.getClassLoader() );
System.out.println("Package: " + TestPackage.class.getPackage());
  } // main
} // TestPackage
--- 8< 8< 8< ---

It produces the following output:

# ./testpackage
ClassLoader: [EMAIL PROTECTED]
Package: null

This is tested with libgcj 3.4.3, however Tom Tromey has proven this still exist
in latest HEAD (as of 2005-08-08):

http://gcc.gnu.org/ml/java/2005-08/msg00027.html

// Martin Egholm

-- 
   Summary: java.lang.Class's #getPackage() returns null
   Product: gcc
   Version: 3.4.3
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
    ReportedBy: martin at egholm-nielsen dot dk
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org


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