blob: 0f6a33e7bf0c398b1ffa7621a66f78e9a98ccf6d [file] [log] [blame]
Ian Rogersa0841a82011-09-22 14:16:31 -07001// Copyright 2011 Google Inc. All Rights Reserved.
2
3// Test case for AbstractMethodError, we will try to do a non-virtual call to
4// foo.
5abstract class AbstractClass {
6 public AbstractClass() {}
7
8 abstract void foo();
9}
10
11class ConcreteClass extends AbstractClass {
12 public ConcreteClass() {}
13
14 void foo() {
15 throw new Error("This method shouldn't be called");
16 }
17}