--- old/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java 2018-02-23 11:58:46.048942079 -0800 +++ new/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Symbol.java 2018-02-23 11:58:45.876934638 -0800 @@ -568,14 +568,14 @@ return hiddenSym; } - /** Is this symbol inherited into a given class? + /** Is this symbol accessible in a given class? * PRE: If symbol's owner is a interface, * it is already assumed that the interface is a superinterface - * of given class. + * the given class. * @param clazz The class for which we want to establish membership. * This must be a subclass of the member's owner. */ - public boolean isInheritedIn(Symbol clazz, Types types) { + public final boolean isAccessibleIn(Symbol clazz, Types types) { switch ((int)(flags_field & Flags.AccessFlags)) { default: // error recovery case PUBLIC: @@ -603,6 +603,17 @@ } } + /** Is this symbol inherited into a given class? + * PRE: If symbol's owner is a interface, + * it is already assumed that the interface is a superinterface + * of the given class. + * @param clazz The class for which we want to establish membership. + * This must be a subclass of the member's owner. + */ + public boolean isInheritedIn(Symbol clazz, Types types) { + return isAccessibleIn(clazz, types); + } + /** The (variable or method) symbol seen as a member of given * class type`site' (this might change the symbol's type). * This is used exclusively for producing diagnostics.