aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-11-18 02:30:29 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-11-18 02:30:29 +0000
commitf967de33d729d3f6078ee48e4d774227214fc8e5 (patch)
treed212a3c5224a9b75b37861c8c40993d7f0928ca8 /libjava
parent9839499072cebd19a8c5cc2a3734adf60b06b21b (diff)
downloadgcc-f967de33d729d3f6078ee48e4d774227214fc8e5.zip
gcc-f967de33d729d3f6078ee48e4d774227214fc8e5.tar.gz
gcc-f967de33d729d3f6078ee48e4d774227214fc8e5.tar.bz2
AccessibleObject.java (isAccessible, [...]): Now public.
* java/lang/reflect/AccessibleObject.java (isAccessible, setAccessible): Now public. From-SVN: r37540
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog3
-rw-r--r--libjava/java/lang/reflect/AccessibleObject.java52
2 files changed, 29 insertions, 26 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index e711ff4..385d983 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,5 +1,8 @@
2000-11-17 Tom Tromey <tromey@cygnus.com>
+ * java/lang/reflect/AccessibleObject.java (isAccessible,
+ setAccessible): Now public.
+
* java/lang/natString.cc: Include Locale.h.
(toUpperCase): Added `locale' argument. Handle locale
sensitivity.
diff --git a/libjava/java/lang/reflect/AccessibleObject.java b/libjava/java/lang/reflect/AccessibleObject.java
index 5ba5887..6d744a00 100644
--- a/libjava/java/lang/reflect/AccessibleObject.java
+++ b/libjava/java/lang/reflect/AccessibleObject.java
@@ -1,6 +1,6 @@
// AccessibleObject.java - Base for reflection objects.
-/* Copyright (C) 1998, 1999 Free Software Foundation
+/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@@ -21,33 +21,33 @@ package java.lang.reflect;
public class AccessibleObject
{
protected AccessibleObject ()
- {
- flag = false;
- }
-
- boolean isAccessible ()
- {
- return flag;
- }
-
- static void setAccessible (AccessibleObject[] array, boolean flag)
- {
- checkPermission ();
- for (int i = 0; i < array.length; ++i)
- array[i].flag = flag;
- }
-
- void setAccessible (boolean flag)
- {
- checkPermission ();
- this.flag = flag;
- }
+ {
+ flag = false;
+ }
+
+ public boolean isAccessible ()
+ {
+ return flag;
+ }
+
+ public static void setAccessible (AccessibleObject[] array, boolean flag)
+ {
+ checkPermission ();
+ for (int i = 0; i < array.length; ++i)
+ array[i].flag = flag;
+ }
+
+ public void setAccessible (boolean flag)
+ {
+ checkPermission ();
+ this.flag = flag;
+ }
private static final void checkPermission ()
- {
- SecurityManager sm = System.getSecurityManager();
- // FIXME: sm.checkPermission(ReflectPermission ("suppressAccessChecks"))
- }
+ {
+ SecurityManager sm = System.getSecurityManager();
+ // FIXME: sm.checkPermission(ReflectPermission ("suppressAccessChecks"))
+ }
private boolean flag;
}