8142467: Remove all references Flags.IPROXY
Remove all references to flag bit IPROXY that has fallen into disuse. Reviewed-by: mcimadamore
This commit is contained in:
parent
e0f654819b
commit
14e78ebab1
@ -126,10 +126,9 @@ public class Flags {
|
||||
*/
|
||||
public static final int BLOCK = 1<<20;
|
||||
|
||||
/** Flag is set for compiler-generated abstract methods that implement
|
||||
* an interface method (Miranda methods).
|
||||
/** Flag bit 21 is available. (used earlier to tag compiler-generated abstract methods that implement
|
||||
* an interface method (Miranda methods)).
|
||||
*/
|
||||
public static final int IPROXY = 1<<21;
|
||||
|
||||
/** Flag is set for nested classes that do not access instance members
|
||||
* or `this' of an outer class and therefore don't need to be passed
|
||||
@ -362,7 +361,6 @@ public class Flags {
|
||||
BLOCK(Flags.BLOCK),
|
||||
ENUM(Flags.ENUM),
|
||||
MANDATED(Flags.MANDATED),
|
||||
IPROXY(Flags.IPROXY),
|
||||
NOOUTERTHIS(Flags.NOOUTERTHIS),
|
||||
EXISTS(Flags.EXISTS),
|
||||
COMPOUND(Flags.COMPOUND),
|
||||
|
@ -2763,7 +2763,7 @@ public class Types {
|
||||
Scope s = c.members();
|
||||
for (Symbol sym : s.getSymbols(NON_RECURSIVE)) {
|
||||
if (sym.kind == MTH &&
|
||||
(sym.flags() & (ABSTRACT|IPROXY|DEFAULT|PRIVATE)) == ABSTRACT) {
|
||||
(sym.flags() & (ABSTRACT|DEFAULT|PRIVATE)) == ABSTRACT) {
|
||||
MethodSymbol absmeth = (MethodSymbol)sym;
|
||||
MethodSymbol implmeth = absmeth.implementation(impl, this, true);
|
||||
if (implmeth == null || implmeth == absmeth) {
|
||||
|
@ -2371,7 +2371,6 @@ public class Check {
|
||||
types.isSameType(types.erasure(sym.type), types.erasure(sym2.type)) &&
|
||||
sym != sym2 &&
|
||||
(sym.flags() & Flags.SYNTHETIC) != (sym2.flags() & Flags.SYNTHETIC) &&
|
||||
(sym.flags() & IPROXY) == 0 && (sym2.flags() & IPROXY) == 0 &&
|
||||
(sym.flags() & BRIDGE) == 0 && (sym2.flags() & BRIDGE) == 0) {
|
||||
syntheticError(pos, (sym2.flags() & SYNTHETIC) == 0 ? sym2 : sym);
|
||||
return;
|
||||
|
@ -834,10 +834,6 @@ public class TransTypes extends TreeTranslator {
|
||||
public void visitSelect(JCFieldAccess tree) {
|
||||
Type t = types.skipTypeVars(tree.selected.type, false);
|
||||
if (t.isCompound()) {
|
||||
if ((tree.sym.flags() & IPROXY) != 0) {
|
||||
tree.sym = ((MethodSymbol)tree.sym).
|
||||
implemented((TypeSymbol)tree.sym.owner, types);
|
||||
}
|
||||
tree.selected = coerce(
|
||||
translate(tree.selected, erasure(tree.selected.type)),
|
||||
erasure(tree.sym.owner.type));
|
||||
|
Loading…
Reference in New Issue
Block a user