Fixing warnings and harness around running Java8 tests and separate JVM tests
This commit is contained in:
@@ -524,7 +524,7 @@ public class ReloadableType {
|
||||
for (ReloadableType relevantProxy : relevantProxies) {
|
||||
Class<?>[] interfacesImplementedByProxy = relevantProxy.getClazz().getInterfaces();
|
||||
// check slashedname correct
|
||||
@SuppressWarnings("restriction")
|
||||
// @SuppressWarnings("restriction")
|
||||
byte[] newProxyBytes = sun.misc.ProxyGenerator.generateProxyClass(relevantProxy.getSlashedName(),
|
||||
interfacesImplementedByProxy);
|
||||
relevantProxy.loadNewVersion(versionsuffix, newProxyBytes, true);
|
||||
|
||||
@@ -18,7 +18,6 @@ package org.springsource.loaded.agent;
|
||||
import java.beans.BeanInfo;
|
||||
import java.beans.Introspector;
|
||||
import java.lang.ref.Reference;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.lang.reflect.Field;
|
||||
import java.lang.reflect.Method;
|
||||
import java.security.ProtectionDomain;
|
||||
|
||||
@@ -140,7 +140,7 @@ public class EmptyCtor extends ClassVisitor implements Constants {
|
||||
public void visitIincInsn(int var, int increment) {
|
||||
}
|
||||
|
||||
public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) {
|
||||
public void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) {
|
||||
}
|
||||
|
||||
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) {
|
||||
|
||||
@@ -33,7 +33,7 @@ public class JavaMethodInvoker extends Invoker {
|
||||
|
||||
private Method method;
|
||||
|
||||
public JavaMethodInvoker(@SuppressWarnings("unused") JavaClassMethodProvider provider, Method method) {
|
||||
public JavaMethodInvoker(/*@SuppressWarnings("unused")*/JavaClassMethodProvider provider, Method method) {
|
||||
this.method = method;
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ public class ReflectiveInterceptor {
|
||||
/*
|
||||
* Get the Class that declares the method calling interceptor method that called this method.
|
||||
*/
|
||||
@SuppressWarnings("restriction")
|
||||
@SuppressWarnings("deprecation")
|
||||
public static Class<?> getCallerClass() {
|
||||
//0 = sun.reflect.Reflection.getCallerClass
|
||||
//1 = this method's frame
|
||||
|
||||
@@ -184,7 +184,7 @@ public class MethodPrinter extends MethodVisitor implements Opcodes {
|
||||
return null;
|
||||
}
|
||||
|
||||
public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) {
|
||||
public void visitTableSwitchInsn(int min, int max, Label dflt, Label... labels) {
|
||||
}
|
||||
|
||||
public void visitTryCatchBlock(Label start, Label end, Label handler, String type) {
|
||||
|
||||
Reference in New Issue
Block a user