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]

Character isDefined != UNASSIGNED


Hi,

It seems that our definition of Character.isDefined() is backwards.

2002-04-06  Mark Wielaard <mark@klomp.org>

        * java/lang/Character,java (isDefined): getType() != UNASSIGNED.

Eric, what do you think?

Cheers,

Mark
Index: java/lang/Character.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Character.java,v
retrieving revision 1.7.8.1
diff -u -r1.7.8.1 Character.java
--- Character.java	2002/03/06 19:13:00	1.7.8.1
+++ Character.java	2002/04/06 15:49:21
@@ -1583,7 +1583,7 @@
    */
   public static boolean isDefined(char ch)
   {
-    return getType(ch) == UNASSIGNED;
+    return getType(ch) != UNASSIGNED;
   }
 
   /**

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