Commit f967de33 by Tom Tromey Committed by Tom Tromey

AccessibleObject.java (isAccessible, [...]): Now public.

	* java/lang/reflect/AccessibleObject.java (isAccessible,
	setAccessible): Now public.

From-SVN: r37540
parent 98394990
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.
......
// 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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment