This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: java.sql spec fix
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Subject: Patch: FYI: java.sql spec fix
- From: Tom Tromey <tromey at redhat dot com>
- Date: 24 Oct 2001 12:19:19 -0600
- Reply-To: tromey at redhat dot com
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