OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [override.java] - Rev 765

Compare with Previous | Blame | View Log

// Regression test that overrides a virtual method with a final one.
 
class override1
{
  public int x1 () { return 3; }
}
 
public class override extends override1
{
  public final int x1() { return 5; }
  public final int x2() { return 7; }
 
  public static void main(String[] args)
  {
    override z = new override();
    System.out.println(z.x1());
    System.out.println(z.x2());
  }
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.