Commit 6d6661fe by Gary Benson Committed by Tom Tromey

For PR libgcj/8759:

2002-11-29  Gary Benson  <gbenson@redhat.com>

	For PR libgcj/8759:
	* java/beans/Introspector.java (flushCaches): New method.
	(flushFromCaches): Likewise.

From-SVN: r59650
parent 2402645b
2002-11-29 Gary Benson <gbenson@redhat.com>
For PR libgcj/8759:
* java/beans/Introspector.java (flushCaches): New method.
(flushFromCaches): Likewise.
2002-11-29 Michael Koch <konqueror@gmx.de> 2002-11-29 Michael Koch <konqueror@gmx.de>
* java/nio/channels/DatagramChannel.java * java/nio/channels/DatagramChannel.java
......
/* java.beans.Introspector /* java.beans.Introspector
Copyright (C) 1998 Free Software Foundation, Inc. Copyright (C) 1998, 2002 Free Software Foundation, Inc.
This file is part of GNU Classpath. This file is part of GNU Classpath.
...@@ -209,6 +209,32 @@ public class Introspector { ...@@ -209,6 +209,32 @@ public class Introspector {
} }
} }
/**
* Flush all of the Introspector's internal caches.
*
* @since 1.2
*/
public static void flushCaches()
{
beanInfoCache.clear();
}
/**
* Flush the Introspector's internal cached information for a given
* class.
*
* @param clz the class to be flushed.
* @throws NullPointerException if clz is null.
* @since 1.2
*/
public static void flushFromCaches(Class clz)
{
synchronized (clz)
{
beanInfoCache.remove(clz);
}
}
/** /**
* Get the BeanInfo for class <CODE>beanClass</CODE>, * Get the BeanInfo for class <CODE>beanClass</CODE>,
* first by looking for explicit information, next by * first by looking for explicit information, next by
......
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