src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/except/UntrustedInterfaces.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/except

src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/except/UntrustedInterfaces.java

Print this page




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   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 package org.graalvm.compiler.jtt.except;
  24 
  25 import org.junit.BeforeClass;
  26 import org.junit.Test;
  27 
  28 import org.graalvm.compiler.jtt.JTTTest;
  29 import org.graalvm.compiler.test.ExportingClassLoader;
  30 
  31 import jdk.internal.org.objectweb.asm.ClassWriter;
  32 import jdk.internal.org.objectweb.asm.MethodVisitor;
  33 import jdk.internal.org.objectweb.asm.Opcodes;
  34 import jdk.internal.org.objectweb.asm.Type;

  35 
  36 public class UntrustedInterfaces extends JTTTest {
  37 
  38     public interface CallBack {
  39         int callBack(TestInterface ti);
  40     }
  41 
  42     private interface TestInterface {
  43         int method();
  44     }
  45 
  46     /**
  47      * What a GoodPill would look like.
  48      *
  49      * <pre>
  50      * private static final class GoodPill extends Pill {
  51      *     public void setField() {
  52      *         field = new TestConstant();
  53      *     }
  54      *




   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   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 package org.graalvm.compiler.jtt.except;
  24 



  25 import org.graalvm.compiler.jtt.JTTTest;
  26 import org.graalvm.compiler.test.ExportingClassLoader;
  27 import org.junit.BeforeClass;
  28 import org.junit.Test;
  29 import org.objectweb.asm.ClassWriter;
  30 import org.objectweb.asm.MethodVisitor;
  31 import org.objectweb.asm.Opcodes;
  32 import org.objectweb.asm.Type;
  33 
  34 public class UntrustedInterfaces extends JTTTest {
  35 
  36     public interface CallBack {
  37         int callBack(TestInterface ti);
  38     }
  39 
  40     private interface TestInterface {
  41         int method();
  42     }
  43 
  44     /**
  45      * What a GoodPill would look like.
  46      *
  47      * <pre>
  48      * private static final class GoodPill extends Pill {
  49      *     public void setField() {
  50      *         field = new TestConstant();
  51      *     }
  52      *


src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.jtt/src/org/graalvm/compiler/jtt/except/UntrustedInterfaces.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File