Fixing warnings and harness around running Java8 tests and separate JVM tests

This commit is contained in:
Andy Clement
2014-02-26 13:16:57 -08:00
parent b474237898
commit ee3b3acc2f
17 changed files with 30 additions and 22 deletions

View File

@@ -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);

View File

@@ -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;

View File

@@ -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) {

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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) {