blob: 8cf34b245411801ca6d84d530d6be35bc1b586da [file] [log] [blame]
Mads Ager418d1ca2017-05-22 09:35:49 +02001// 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.
4package memberrebinding;
5
6public 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}