< prev index next >

test/java/lang/invoke/lambda/LambdaStackTrace.java

Print this page




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8025636
  27  * @summary Synthetic frames should be hidden in exceptions
  28  * @modules java.base/jdk.internal.org.objectweb.asm

  29  * @compile -XDignore.symbol.file LUtils.java LambdaStackTrace.java
  30  * @run main LambdaStackTrace
  31  */
  32 
  33 import jdk.internal.org.objectweb.asm.ClassWriter;
  34 
  35 import java.io.File;
  36 import java.io.FileOutputStream;
  37 import java.io.IOException;
  38 import java.lang.reflect.InvocationTargetException;
  39 import java.lang.reflect.Method;
  40 import java.util.ArrayList;
  41 
  42 import static jdk.internal.org.objectweb.asm.Opcodes.ACC_ABSTRACT;
  43 import static jdk.internal.org.objectweb.asm.Opcodes.ACC_INTERFACE;
  44 import static jdk.internal.org.objectweb.asm.Opcodes.ACC_PUBLIC;
  45 import static jdk.internal.org.objectweb.asm.Opcodes.V1_7;
  46 
  47 public class LambdaStackTrace {
  48 




   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  * @bug 8025636
  27  * @summary Synthetic frames should be hidden in exceptions
  28  * @modules java.base/jdk.internal.org.objectweb.asm
  29  *          jdk.compiler
  30  * @compile -XDignore.symbol.file LUtils.java LambdaStackTrace.java
  31  * @run main LambdaStackTrace
  32  */
  33 
  34 import jdk.internal.org.objectweb.asm.ClassWriter;
  35 
  36 import java.io.File;
  37 import java.io.FileOutputStream;
  38 import java.io.IOException;
  39 import java.lang.reflect.InvocationTargetException;
  40 import java.lang.reflect.Method;
  41 import java.util.ArrayList;
  42 
  43 import static jdk.internal.org.objectweb.asm.Opcodes.ACC_ABSTRACT;
  44 import static jdk.internal.org.objectweb.asm.Opcodes.ACC_INTERFACE;
  45 import static jdk.internal.org.objectweb.asm.Opcodes.ACC_PUBLIC;
  46 import static jdk.internal.org.objectweb.asm.Opcodes.V1_7;
  47 
  48 public class LambdaStackTrace {
  49 


< prev index next >