1 // Copyright (c) 2016, the R8 project authors. Please see the AUTHORS file 2 // for details. All rights reserved. Use of this source code is governed by a 3 // BSD-style license that can be found in the LICENSE file. 4 package memberrebinding; 5 6 public class ClassAtBottomOfChain extends EssentiallyEmptyClass { 7 8 @Override superCallsProperlyPropagate()9 public void superCallsProperlyPropagate() { 10 System.out.println("Try invoke on super, aka ClassInMiddleOfChain"); 11 super.superCallsProperlyPropagate(); 12 } 13 methodThatCallsSuperCallsProperlyPropagateTwo()14 public void methodThatCallsSuperCallsProperlyPropagateTwo() { 15 // Invoke the method on the superclass even though this class does not override it. 16 super.superCallsProperlyPropagateTwo(); 17 } 18 19 // Method with same name but different signature to test lookup. methodThatShadowsPrivate(int ignore)20 public void methodThatShadowsPrivate(int ignore) { 21 22 } 23 } 24