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

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2012, 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) 2012, 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
*** 131,145 **** } private static MemberName convertToMemberName(byte refKind, Member mem) throws IllegalAccessException { if (mem instanceof Method) { boolean wantSpecial = (refKind == REF_invokeSpecial); ! return new MemberName((Method) mem, wantSpecial); } else if (mem instanceof Constructor) { ! return new MemberName((Constructor) mem); } else if (mem instanceof Field) { boolean isSetter = (refKind == REF_putField || refKind == REF_putStatic); ! return new MemberName((Field) mem, isSetter); } throw new InternalError(mem.getClass().getName()); } } --- 131,145 ---- } private static MemberName convertToMemberName(byte refKind, Member mem) throws IllegalAccessException { if (mem instanceof Method) { boolean wantSpecial = (refKind == REF_invokeSpecial); ! return MemberName.make((Method) mem, wantSpecial); } else if (mem instanceof Constructor) { ! return MemberName.make((Constructor) mem); } else if (mem instanceof Field) { boolean isSetter = (refKind == REF_putField || refKind == REF_putStatic); ! return MemberName.make((Field) mem, isSetter); } throw new InternalError(mem.getClass().getName()); } }
src/java.base/share/classes/java/lang/invoke/InfoFromMemberName.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File