summaryrefslogtreecommitdiff
path: root/test/AbstractMethod/AbstractClass.java
blob: 0f6a33e7bf0c398b1ffa7621a66f78e9a98ccf6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2011 Google Inc. All Rights Reserved.

// Test case for AbstractMethodError, we will try to do a non-virtual call to
// foo.
abstract class AbstractClass {
  public AbstractClass() {}

  abstract void foo();
}

class ConcreteClass extends AbstractClass {
  public ConcreteClass() {}

  void foo() {
    throw new Error("This method shouldn't be called");
  }
}