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]
Other format: [Raw text]

FYI: Patch: java.util.Calendar - JDK 1.4 compatibility change


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached obvious patch to trunk to fix a JDK API 
compatibility issue.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+yKEYWSOgCCdjSDsRAiAJAJwM0GQzpKFgpvcAOPAi++6Pz7ADkwCfUhZd
osKMZaeZE6uscL2ksg2grds=
=o183
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1899
diff -u -b -B -r1.1899 ChangeLog
--- ChangeLog	19 May 2003 09:09:22 -0000	1.1899
+++ ChangeLog	19 May 2003 09:13:39 -0000
@@ -1,5 +1,11 @@
 2003-05-19  Michael Koch  <konqueror@gmx.de>
 
+	* java/util/Calendar.java
+	(get): Not final anymore since JDK 1.4
+	(set): Likewise.
+
+2003-05-19  Michael Koch  <konqueror@gmx.de>
+
 	* java/text/CollationKey.java:
 	Merged copyright and dat from classpath.
 	* java/text/RuleBasedCollator.java:
Index: java/util/Calendar.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/Calendar.java,v
retrieving revision 1.14
diff -u -b -B -r1.14 Calendar.java
--- java/util/Calendar.java	31 Aug 2002 05:27:15 -0000	1.14
+++ java/util/Calendar.java	19 May 2003 09:13:39 -0000
@@ -531,8 +531,10 @@
    * if they are invalid.
    * @param field the time field. One of the time field constants.
    * @return the value of the specified field
+   *
+   * @specnote Not final since JDK 1.4
    */
-  public final int get(int field)
+  public int get(int field)
   {
     // If the requested field is invalid, force all fields to be recomputed.
     if (!isSet[field])
@@ -558,8 +560,10 @@
    * the time in milliseconds.
    * @param field the time field. One of the time field constants
    * @param value the value to be set.
+   *
+   * @specnote Not final since JDK 1.4
    */
-  public final void set(int field, int value)
+  public void set(int field, int value)
   {
     isTimeSet = false;
     fields[field] = value;

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