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

Subversion Repositories openrisc

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

Compare with Previous | Blame | View Log

public class pr24321 {
  static class Z {
    static {
      System.out.println("init");
    }
  }
 
  static class Y extends Z { }
 
  public static Object x () { return new Object(); }
 
  public static void main(String[] args) throws Throwable
  {
    System.out.println(x() instanceof Z);
 
    ClassLoader cl = pr24321.class.getClassLoader();
    Class zk = Class.forName("pr24321$Z", false, cl);
    Class yk = Class.forName("pr24321$Y", false, cl);
    System.out.println(zk.isAssignableFrom(yk));
  }
}
 

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.