/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
class Trampoline {
static {
throw new Error(
"Trampoline must not be defined by the bootstrap classloader");
}
}
throws InvocationTargetException
{
throw new InvocationTargetException(
new UnsupportedOperationException("invocation not supported"));
}
{
}
}
/*
* Create a trampoline class.
*/
private MethodUtil() {
super();
}
throws NoSuchMethodException {
}
return cls.getMethods();
}
/*
* Discover the public methods on public classes
* and interfaces accessible to any caller by calling
* Class.getMethods() and walking towards Object until
* we're done.
*/
// compatibility for update release
return cls.getMethods();
}
if (done) {
break;
}
}
}
/*
* Process the immediate interfaces of this class or interface.
*/
if (!done) {
}
}
}
/*
*
* Process the methods in this class or interface
*/
try {
/*
* This class or interface is non-public so we
* can't use any of it's methods. Go back and
* try again with a superclass or superinterface.
*/
return false;
}
return false;
}
} catch (SecurityException se) {
return false;
}
/*
* Check for inherited methods with non-public
* declaring classes. They might override and hide
* methods from their superclasses or
* superinterfaces.
*/
boolean done = true;
done = false;
break;
}
}
if (done) {
/*
* We're done. Spray all the methods into
* the list and then we're out of here.
*/
}
} else {
/*
* Simulate cls.getDeclaredMethods() by
* stripping away inherited methods.
*/
}
}
}
return done;
}
/*
* Superclasses beat interfaces.
*/
}
}
}
/**
* A class that represents the unique elements of a method that will be a
* key in the method cache.
*/
private static class Signature {
this.methodName = m.getName();
this.argClasses = m.getParameterTypes();
}
if (this == o2) {
return true;
}
return false;
}
return false;
}
return false;
}
}
return true;
}
/**
* Hash code computed using algorithm suggested in
* Effective Java, Item 8.
*/
public int hashCode() {
if (hashCode == 0) {
int result = 17;
if (argClasses != null) {
argClasses[i].hashCode());
}
}
}
return hashCode;
}
}
/*
* Bounce through the trampoline.
*/
try {
} catch (InvocationTargetException ie) {
if (t instanceof InvocationTargetException) {
throw (InvocationTargetException)t;
} else if (t instanceof IllegalAccessException) {
throw (IllegalAccessException)t;
} else if (t instanceof RuntimeException) {
throw (RuntimeException)t;
} else if (t instanceof Error) {
throw (Error)t;
} else {
throw new Error("Unexpected invocation error", t);
}
} catch (IllegalAccessException iae) {
// this can't happen
}
}
try {
return AccessController.doPrivileged(
new PrivilegedExceptionAction<Method>() {
Class<?> t = getTrampolineClass();
};
b.setAccessible(true);
return b;
}
});
} catch (Exception e) {
throw new InternalError("bouncer cannot be found");
}
}
throws ClassNotFoundException
{
// First, check if the class has already been loaded
if (c == null) {
try {
} catch (ClassNotFoundException e) {
// Fall through ...
}
if (c == null) {
}
}
if (resolve) {
resolveClass(c);
}
return c;
}
throws ClassNotFoundException
{
throw new ClassNotFoundException(name);
}
try {
} catch (IOException e) {
throw new ClassNotFoundException(name, e);
}
} else {
throw new ClassNotFoundException(name);
}
}
/*
* Define the proxy classes
*/
}
}
/*
* Returns the contents of the specified URL as an array of bytes.
*/
throw new IOException("open HTTP connection failed.");
}
}
byte[] b;
try {
} finally {
}
return b;
}
{
return perms;
}
try {
} catch (ClassNotFoundException e) {
}
return null;
}
}