From: aclement Date: Fri, 5 Aug 2011 16:22:02 +0000 (+0000) Subject: use valueOf X-Git-Tag: V1_6_12M2~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2699eb1ff8714142dedc9c61c916dbc3bc09fc43;p=aspectj.git use valueOf --- 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) {