OSDN Git Service

* java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
authorwarrenl <warrenl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jun 1999 12:24:59 +0000 (12:24 +0000)
committerwarrenl <warrenl@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 Jun 1999 12:24:59 +0000 (12:24 +0000)
* java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
* java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
is not final per JDK.
* java/util/PropertyResourceBundle.java (handleGetObject): Method is
public per JDK.
* java/util/zip/DataFormatException.java: Class extends Exception.
* java/util/zip/Deflater.java (finalize): Method is protected per JDK.
* java/util/zip/ZipEntry.java: Class implements ZipConstants.
* java/util/zip/ZipInputStream.java: ditto.
(closeEntry): Changed method name to match JDK spec.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@27717 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/net/DatagramSocketImpl.java
libjava/java/net/natPlainDatagramSocketImpl.cc
libjava/java/text/ChoiceFormat.java
libjava/java/util/PropertyResourceBundle.java
libjava/java/util/zip/DataFormatException.java
libjava/java/util/zip/Deflater.java
libjava/java/util/zip/ZipEntry.java
libjava/java/util/zip/ZipInputStream.java

index 777ec8e..1581108 100644 (file)
@@ -1,3 +1,17 @@
+1999-06-23  Warren Levy  <warrenl@cygnus.com>
+
+       * java/net/DatagramSocketImpl.java (localPort): Fixed typo to match JDK.
+       * java/net/natPlainDatagramSocketImpl.cc (bind): ditto.
+       * java/text/ChoiceFormat.java (nextDouble(double, boolean)): Method
+       is not final per JDK.
+       * java/util/PropertyResourceBundle.java (handleGetObject): Method is
+       public per JDK.
+       * java/util/zip/DataFormatException.java: Class extends Exception.
+       * java/util/zip/Deflater.java (finalize): Method is protected per JDK.
+       * java/util/zip/ZipEntry.java: Class implements ZipConstants.
+       * java/util/zip/ZipInputStream.java: ditto.
+       (closeEntry): Changed method name to match JDK spec.
+
 1999-06-21  Tom Tromey  <tromey@cygnus.com>
 
        * java/lang/ieeefp.h (__IEEE_LITTLE_ENDIAN): Define for alpha.
index 9ae61cf..da4c2ce 100644 (file)
@@ -25,7 +25,7 @@ import java.io.FileDescriptor;
 
 public abstract class DatagramSocketImpl implements SocketOptions
 {
-  protected int localport;
+  protected int localPort;
   protected FileDescriptor fd;
 
   public DatagramSocketImpl()
@@ -57,6 +57,6 @@ public abstract class DatagramSocketImpl implements SocketOptions
 
   protected int getLocalPort()
   {
-    return localport;
+    return localPort;
   }
 }
index ef2a3cb..6825950 100644 (file)
@@ -113,9 +113,9 @@ java::net::PlainDatagramSocketImpl::bind (jint lport,
     {
       socklen_t addrlen = sizeof(u);
       if (lport != 0)
-        localport = lport;
+        localPort = lport;
       else if (::getsockname (fnum, (sockaddr*) &u, &addrlen) == 0)
-        localport = ntohs (u.address.sin_port);
+        localPort = ntohs (u.address.sin_port);
       else
         goto error;
       return;
index bed62a7..bd0ccab 100644 (file)
@@ -182,7 +182,7 @@ public class ChoiceFormat extends NumberFormat
       return nextDouble (d, true);
     }
 
-  public static final double nextDouble (double d, boolean next)
+  public static double nextDouble (double d, boolean next)
     {
       if (Double.isInfinite(d) || Double.isNaN(d))
        return d;
index 706e427..a1f9900 100644 (file)
@@ -40,7 +40,7 @@ public class PropertyResourceBundle extends ResourceBundle
                                      parent.getKeys ());
     }
 
-  protected Object handleGetObject (String key)
+  public Object handleGetObject (String key)
     {
       return properties.getProperty(key);
     }
index 258f47f..9e67b75 100644 (file)
@@ -19,7 +19,7 @@ package java.util.zip;
  * Believed complete and correct.
  */
 
-public class DataFormatException extends java.io.IOException
+public class DataFormatException extends Exception
 {
   public DataFormatException ()
   {
index 3c45b28..202b220 100644 (file)
@@ -63,7 +63,7 @@ public class Deflater
 
   public native void end ();
 
-  public void finalize ()
+  protected void finalize ()
   {
     end ();
   }
index 7035ab5..9bd3c41 100644 (file)
@@ -19,7 +19,7 @@ package java.util.zip;
  * Status:  Believed complete and correct.
  */
 
-public class ZipEntry
+public class ZipEntry implements ZipConstants
 {
   // These values were determined using a simple test program.
   public static final int STORED = 0;
index 224e785..41b092d 100644 (file)
@@ -26,7 +26,7 @@ import java.io.*;
 // we probably should.  FIXME.
    
 
-public class ZipInputStream extends InflaterInputStream
+public class ZipInputStream extends InflaterInputStream implements ZipConstants
 {
   public ZipInputStream (InputStream in)
   {
@@ -36,7 +36,7 @@ public class ZipInputStream extends InflaterInputStream
   public ZipEntry getNextEntry () throws IOException
   {
     if (current != null)
-      closeZipEntry();
+      closeEntry();
     if (in.read() != 'P'
        || in.read() != 'K')
       return null;
@@ -184,7 +184,7 @@ public class ZipInputStream extends InflaterInputStream
       + ((byte1 & 0xFF) << 8) + (byte0 & 0xFF);
   }
 
-  public void closeZipEntry ()  throws IOException
+  public void closeEntry ()  throws IOException
   {
     if (current != null)
       {