equal
deleted
inserted
replaced
555 Constructor<T> tmpConstructor = cachedConstructor; |
555 Constructor<T> tmpConstructor = cachedConstructor; |
556 // Security check (same as in java.lang.reflect.Constructor) |
556 // Security check (same as in java.lang.reflect.Constructor) |
557 Class<?> caller = Reflection.getCallerClass(); |
557 Class<?> caller = Reflection.getCallerClass(); |
558 if (newInstanceCallerCache != caller) { |
558 if (newInstanceCallerCache != caller) { |
559 int modifiers = tmpConstructor.getModifiers(); |
559 int modifiers = tmpConstructor.getModifiers(); |
560 Reflection.ensureMemberAccess(caller, this, null, modifiers); |
560 Reflection.ensureMemberAccess(caller, this, this, modifiers); |
561 newInstanceCallerCache = caller; |
561 newInstanceCallerCache = caller; |
562 } |
562 } |
563 // Run constructor |
563 // Run constructor |
564 try { |
564 try { |
565 return tmpConstructor.newInstance((Object[])null); |
565 return tmpConstructor.newInstance((Object[])null); |