Package haikuvm.bench.from.darjeeling.testvm.classes

Examples of haikuvm.bench.from.darjeeling.testvm.classes.C


    A a, b, c, d;
    E e;
   
    a = new A();
    b = new B();
    c = new C();
    d = new D();
    e = new E();
   
    Darjeeling.assertTrue(testBase +  0, a.virtualMethod()==0);
    Darjeeling.assertTrue(testBase +  1, b.virtualMethod()==1);
View Full Code Here


  {
   
    // test NEW and INSTANCEOF
    A a = new A();// A implements AInterface
    B b = new B();// B extends A
    C c = new C();// C extends B implents CInterface
    D d = new D();// D extends C
    String str = new String();
    Inner inner = new Inner();
   
    Darjeeling.assertTrue(testBase +  0, a instanceof A)
View Full Code Here

 
  public static void interfaceImplementTest(int testBase)
  {
    A a = new A();
    B b = new B();
    C c = new C();
    D d = new D();
    E e = new E();
        Inner inner = new Inner();

    Darjeeling.assertTrue(testBase +  0, a instanceof AInterface);
View Full Code Here

  private static void checkcastTest(int testBase)
  {
    // check cast
    Object a = new A();
    Object b = new B();
    Object c = new C();
    Object d = new D();

    Object o = b;
    a = (A)o;
    Darjeeling.assertTrue(testBase +  0, a instanceof A);
View Full Code Here

TOP

Related Classes of haikuvm.bench.from.darjeeling.testvm.classes.C

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.