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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
public class pr24321 {
2
  static class Z {
3
    static {
4
      System.out.println("init");
5
    }
6
  }
7
 
8
  static class Y extends Z { }
9
 
10
  public static Object x () { return new Object(); }
11
 
12
  public static void main(String[] args) throws Throwable
13
  {
14
    System.out.println(x() instanceof Z);
15
 
16
    ClassLoader cl = pr24321.class.getClassLoader();
17
    Class zk = Class.forName("pr24321$Z", false, cl);
18
    Class yk = Class.forName("pr24321$Y", false, cl);
19
    System.out.println(zk.isAssignableFrom(yk));
20
  }
21
}

powered by: WebSVN 2.1.0

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