From 2699eb1ff8714142dedc9c61c916dbc3bc09fc43 Mon Sep 17 00:00:00 2001 From: aclement Date: Fri, 5 Aug 2011 16:22:02 +0000 Subject: [PATCH] use valueOf --- .../org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java b/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java index f407a19f5..868c94c48 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/ClassLoaderWeavingAdaptor.java @@ -1026,7 +1026,7 @@ public class ClassLoaderWeavingAdaptor extends WeavingAdaptor { String.class, bytes.getClass(), int.class, int.class, ProtectionDomain.class }); } defineClassWithProtectionDomainMethod.setAccessible(true); - clazz = defineClassWithProtectionDomainMethod.invoke(loader, new Object[] { name, bytes, new Integer(0), + clazz = defineClassWithProtectionDomainMethod.invoke(loader, new Object[] { name, bytes, Integer.valueOf(0), new Integer(bytes.length), protectionDomain }); } catch (InvocationTargetException e) { if (e.getTargetException() instanceof LinkageError) { -- 2.39.5