Ian Rogers | a0841a8 | 2011-09-22 14:16:31 -0700 | [diff] [blame] | 1 | // 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. | ||||
5 | abstract class AbstractClass { | ||||
6 | public AbstractClass() {} | ||||
7 | |||||
8 | abstract void foo(); | ||||
9 | } | ||||
10 | |||||
11 | class ConcreteClass extends AbstractClass { | ||||
12 | public ConcreteClass() {} | ||||
13 | |||||
14 | void foo() { | ||||
15 | throw new Error("This method shouldn't be called"); | ||||
16 | } | ||||
17 | } |