src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File jdk Cdiff src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java

src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2008, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 107,120 **** if (member.isConstructor()) return makeAllocator(member); return make(member.getDeclaringClass(), member); } static DirectMethodHandle make(Method method) { ! return make(method.getDeclaringClass(), new MemberName(method)); } static DirectMethodHandle make(Field field) { ! return make(field.getDeclaringClass(), new MemberName(field)); } private static DirectMethodHandle makeAllocator(MemberName ctor) { assert(ctor.isConstructor() && ctor.getName().equals("<init>")); Class<?> instanceClass = ctor.getDeclaringClass(); ctor = ctor.asConstructor(); --- 107,120 ---- if (member.isConstructor()) return makeAllocator(member); return make(member.getDeclaringClass(), member); } static DirectMethodHandle make(Method method) { ! return make(method.getDeclaringClass(), MemberName.make(method)); } static DirectMethodHandle make(Field field) { ! return make(field.getDeclaringClass(), MemberName.make(field)); } private static DirectMethodHandle makeAllocator(MemberName ctor) { assert(ctor.isConstructor() && ctor.getName().equals("<init>")); Class<?> instanceClass = ctor.getDeclaringClass(); ctor = ctor.asConstructor();
src/java.base/share/classes/java/lang/invoke/DirectMethodHandle.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File