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 5 // This code is not run directly. It needs to be compiled to dex code. 6 // 'memberrebinging.dex' is what is run. 7 8 package memberrebinding; 9 10 public class SuperClassOfAll { 11 12 public int superField; 13 superCallsProperlyPropagate()14 public void superCallsProperlyPropagate() { 15 System.out.println("Invoked superCallsProperlyPropagate on SuperClassOfAll."); 16 } 17 superCallsProperlyPropagateTwo()18 public void superCallsProperlyPropagateTwo() { 19 System.out.println("Invoked superCallsProperlyPropagateTwo on SuperClassOfAll."); 20 } 21 methodThatShadowsPrivate()22 private void methodThatShadowsPrivate() { 23 System.out.println("methodThatShadowsPrivate on SuperClassOfAll"); 24 } 25 ensureAllCalled()26 public void ensureAllCalled() { 27 methodThatShadowsPrivate(); 28 } 29 }