equal
deleted
inserted
replaced
251 Type origType = types.memberType(origin.type, meth); |
251 Type origType = types.memberType(origin.type, meth); |
252 Type origErasure = erasure(origType); |
252 Type origErasure = erasure(origType); |
253 |
253 |
254 // Create a bridge method symbol and a bridge definition without a body. |
254 // Create a bridge method symbol and a bridge definition without a body. |
255 Type bridgeType = meth.erasure(types); |
255 Type bridgeType = meth.erasure(types); |
256 long flags = impl.flags() & AccessFlags | SYNTHETIC | BRIDGE | |
256 long flags = impl.flags() & BridgeMethodMask | SYNTHETIC | BRIDGE | |
257 (origin.isInterface() ? DEFAULT : 0); |
257 (origin.isInterface() ? DEFAULT : 0); |
258 if (hypothetical) flags |= HYPOTHETICAL; |
258 if (hypothetical) flags |= HYPOTHETICAL; |
259 MethodSymbol bridge = new MethodSymbol(flags, |
259 MethodSymbol bridge = new MethodSymbol(flags, |
260 meth.name, |
260 meth.name, |
261 bridgeType, |
261 bridgeType, |
929 MethodSymbol impl, |
929 MethodSymbol impl, |
930 MethodSymbol member, |
930 MethodSymbol member, |
931 ClassSymbol c, |
931 ClassSymbol c, |
932 ListBuffer<JCTree> bridges) { |
932 ListBuffer<JCTree> bridges) { |
933 Type implErasure = impl.erasure(types); |
933 Type implErasure = impl.erasure(types); |
934 long flags = (impl.flags() & AccessFlags) | SYNTHETIC | BRIDGE | OVERRIDE_BRIDGE; |
934 long flags = impl.flags() & BridgeMethodMask | SYNTHETIC | BRIDGE | OVERRIDE_BRIDGE; |
935 member = new MethodSymbol(flags, member.name, member.type, c); |
935 member = new MethodSymbol(flags, member.name, member.type, c); |
936 JCMethodDecl md = make.MethodDef(member, null); |
936 JCMethodDecl md = make.MethodDef(member, null); |
937 JCExpression receiver = make.Super(types.supertype(c.type).tsym.erasure(types), c); |
937 JCExpression receiver = make.Super(types.supertype(c.type).tsym.erasure(types), c); |
938 Type calltype = erasure(impl.type.getReturnType()); |
938 Type calltype = erasure(impl.type.getReturnType()); |
939 JCExpression call = |
939 JCExpression call = |