src/share/native/java/lang/Throwable.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1994, 2000, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 42,52 **** * usually called automatically when the exception is created but it * may also be called explicitly by the user. This routine returns * `this' so you can write 'throw e.fillInStackTrace();' */ JNIEXPORT jobject JNICALL ! Java_java_lang_Throwable_fillInStackTrace(JNIEnv *env, jobject throwable) { JVM_FillInStackTrace(env, throwable); return throwable; } --- 42,52 ---- * usually called automatically when the exception is created but it * may also be called explicitly by the user. This routine returns * `this' so you can write 'throw e.fillInStackTrace();' */ JNIEXPORT jobject JNICALL ! Java_java_lang_Throwable_fillInStackTrace(JNIEnv *env, jobject throwable, int dummy) { JVM_FillInStackTrace(env, throwable); return throwable; }