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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [Final.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
public final class Final
2
{
3
  public static void main(String args[])
4
    {
5
      Final f = null;
6
      try
7
        {
8
          f.doSomething();
9
        }
10
      catch (NullPointerException x)
11
        {
12
          System.out.println("NullPointerException - ok");
13
        }
14
    }
15
 
16
  void doSomething()
17
    {
18
      System.out.println("This should not happen");
19
    }
20
}

powered by: WebSVN 2.1.0

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