Package sun.misc

Examples of sun.misc.Unsafe.throwException()


      System.out.println(((Foo)f).c);
    }
    // Test throwException
    Exception e = new Exception("I'm exceptional!");
    try {
      unsafe.throwException(e);
    } catch (Exception exception) {
      System.out.println("Caught an exception! Is it the same as the one I threw? "+((e == exception)?"true":"false"));
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.