This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: FYI: java.sql spec fix


I'm cheecking this in.
This fixes a minor divergence from the spec.
java.sql.Types shouldn't be instantiable.

Tom

2001-10-24  Tom Tromey  <tromey@redhat.com>

	* java/sql/Types.java (Types): New constructor.

Index: java/sql/Types.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/sql/Types.java,v
retrieving revision 1.2
diff -u -r1.2 Types.java
--- java/sql/Types.java 2000/12/01 01:48:34 1.2
+++ java/sql/Types.java 2001/10/24 18:00:28
@@ -1,5 +1,5 @@
 /* Types.java -- SQL type constants
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright (C) 1999, 2001 Free Software Foundation, Inc.
 
 This file is part of GNU Classpath.
 
@@ -66,6 +66,11 @@
 public static final int BLOB = 2004;
 public static final int CLOB = 2005;
 public static final int REF = 2006;
+
+  // This class can't be instantiated.
+  private Types ()
+  {
+  }
 
 } // class Types 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]