Mads Ager | 418d1ca | 2017-05-22 09:35:49 +0200 | [diff] [blame] | 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 ClassInMiddleOfChain extends SuperClassOfAll { |
| 7 | |
| 8 | @Override |
| 9 | public void superCallsProperlyPropagate() { |
| 10 | // Do not! call super here to break the super-chain. |
| 11 | System.out.println("Invoked superCallsProperlyPropagate on ClassInMiddleOfChain."); |
| 12 | } |
| 13 | |
| 14 | @Override |
| 15 | public void superCallsProperlyPropagateTwo() { |
| 16 | // Do not! call super here to break the super-chain. |
| 17 | System.out.println("Invoked superCallsProperlyPropagateTwo on ClassInMiddleOfChain."); |
| 18 | } |
| 19 | |
| 20 | public void methodThatShadowsPrivate() { |
| 21 | System.out.println("methodThatShadowsPrivate on ClassInMiddleOfChain"); |
| 22 | } |
| 23 | } |