< prev index next >

test/hotspot/jtreg/runtime/valhalla/valuetypes/TestInheritedValueTypeFields.java

Print this page




  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 package runtime.valhalla.valuetypes;
  25 
  26 import jdk.test.lib.Asserts;
  27 
  28 /*
  29  * @test TestInheritedValueTypeFields
  30  * @summary Test if value field klasses are correctly retrieved for inherited fields
  31  * @library /test/lib
  32  * @compile -XDenableValueTypes Point.java TestInheritedValueTypeFields.java





  33  * @run main/othervm -XX:+EnableValhalla runtime.valhalla.valuetypes.TestInheritedValueTypeFields
  34  */
  35 
  36 class A {
  37     Point p;
  38 }
  39 
  40 class B extends A {
  41 
  42 }
  43 
  44 class C extends B {
  45     int i;
  46 }
  47 
  48 class D {
  49     long l;
  50 }
  51 
  52 class E extends D {




  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 package runtime.valhalla.valuetypes;
  25 
  26 import jdk.test.lib.Asserts;
  27 
  28 /*
  29  * @test TestInheritedValueTypeFields
  30  * @summary Test if value field klasses are correctly retrieved for inherited fields
  31  * @library /test/lib
  32  * @compile -XDenableValueTypes Point.java TestInheritedValueTypeFields.java
  33  * @run main/othervm -Xint -XX:+EnableValhalla runtime.valhalla.valuetypes.TestInheritedValueTypeFields
  34  */
  35 
  36 
  37 /*
  38  * @run main/othervm -XX:+EnableValhalla runtime.valhalla.valuetypes.TestInheritedValueTypeFields
  39  */
  40 
  41 class A {
  42     Point p;
  43 }
  44 
  45 class B extends A {
  46 
  47 }
  48 
  49 class C extends B {
  50     int i;
  51 }
  52 
  53 class D {
  54     long l;
  55 }
  56 
  57 class E extends D {


< prev index next >