OSDN Git Service

* java/lang/reflect/Modifier.java (STRICT): New constant.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Dec 1999 23:05:21 +0000 (23:05 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Dec 1999 23:05:21 +0000 (23:05 +0000)
(isStrict): New method.
(toString): Added `strict'.

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

libjava/ChangeLog
libjava/java/lang/reflect/Method.java
libjava/java/lang/reflect/Modifier.java

index 07efe35..3a0b99b 100644 (file)
@@ -1,3 +1,9 @@
+1999-12-20  Tom Tromey  <tromey@cygnus.com>
+
+       * java/lang/reflect/Modifier.java (STRICT): New constant.
+       (isStrict): New method.
+       (toString): Added `strict'.
+
 1999-12-23  Anthony Green  <green@cygnus.com>
 
        * configure: Rebuilt.
index e7f697f..e0571f8 100644 (file)
@@ -17,8 +17,7 @@ package java.lang.reflect;
 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
  * "The Java Language Specification", ISBN 0-201-63451-1
  * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status:  Incomplete: needs a private constructor, and
- *          invoke() needs to be finished.
+ * Status:  Incomplete: invoke() needs to be finished.
  */
 
 public final class Method extends AccessibleObject implements Member
index 5128531..efe7029 100644 (file)
@@ -16,7 +16,7 @@ details.  */
 /* Written using "Java Class Libraries", 2nd edition, ISBN 0-201-31002-3
  * "The Java Language Specification", ISBN 0-201-63451-1
  * plus online API docs for JDK 1.2 beta from http://www.javasoft.com.
- * Status: Believed complete and correct to version 1.1
+ * Status: Believed complete and correct to version 1.2.
  */
 
 package java.lang.reflect;
@@ -34,6 +34,7 @@ public class Modifier
   public static final int NATIVE    = 0x100;
   public static final int INTERFACE = 0x200;
   public static final int ABSTRACT  = 0x400;
+  public static final int STRICT    = 0x800;
 
   // This is only used by the C++ code, so it is not public.
   static final int ALL_FLAGS = 0x7ff;
@@ -78,6 +79,11 @@ public class Modifier
     return (mod & STATIC) != 0;
   }
 
+  public static boolean isStrict (int mod)
+  {
+    return (mod & STRICT) != 0;
+  }
+
   public static boolean isSynchronized (int mod)
   {
     return (mod & SYNCHRONIZED) != 0;
@@ -124,6 +130,8 @@ public class Modifier
       r.append("synchronized ");
     if (isInterface (mod))
       r.append("interface ");
+    if (isStrict (mod))
+      r.append("strict ");
 
     // Trim trailing space.
     int l = r.length();