Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8316628: [lw5] remove vnew, aconst_init, and withfield #934

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -356,6 +356,9 @@ public Type erasure(Types types) {
public Type externalType(Types types) {
Type t = erasure(types);
/*if (isValueClassConst()) {
// previously we had vnew methods which had a return type, not `void`, and we were attaching metadata to it
// like nullness for example. Type `void` doesn't accept metadata so if we need to state that the result of
// invoking a value class constructor is never null, we will need another way.
if (((MethodType)t).restype.getMetadata(TypeMetadata.NullMarker.class) == null) {
((MethodType)t).restype = ((MethodType)t).restype.addMetadata(new TypeMetadata.NullMarker(JCTree.JCNullableTypeExpression.NullMarker.NOT_NULL));
}
3 changes: 3 additions & 0 deletions test/langtools/jdk/jshell/Test8294583.java
Original file line number Diff line number Diff line change
@@ -27,8 +27,11 @@
* @summary JShell: NPE in switch with non existing record pattern
* @build KullaTesting TestingInputStream
* @run testng Test8294583
* @ignore
*/

// see JDK-8316628

import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;

3 changes: 3 additions & 0 deletions test/langtools/jdk/jshell/Test8296012.java
Original file line number Diff line number Diff line change
@@ -27,8 +27,11 @@
* @summary jshell crashes on mismatched record pattern
* @build KullaTesting TestingInputStream
* @run testng Test8296012
* @ignore
*/

// see JDK-8316628

import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;

3 changes: 3 additions & 0 deletions test/langtools/jdk/jshell/ToolEnablePreviewTest.java
Original file line number Diff line number Diff line change
@@ -26,8 +26,11 @@
* @bug 8199193
* @summary Tests for the --enable-preview option
* @run testng ToolEnablePreviewTest
* @ignore
*/

// see JDK-8316628

import org.testng.annotations.Test;

import static org.testng.Assert.assertTrue;
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
* jdk.jdeps/com.sun.tools.classfile
* @build toolbox.JavaTask toolbox.JavacTask toolbox.TestRunner toolbox.ToolBox
* @run main SourceLauncherTest
* @ignore 8316628
*/

import com.sun.tools.classfile.Attribute;
Original file line number Diff line number Diff line change
@@ -34,6 +34,7 @@
* jdk.compiler/com.sun.tools.javac.util
* jdk.jdeps/com.sun.tools.classfile
* @run testng/othervm NullabilityCompilationTests
* @ignore 8316628
*/
import java.util.List;
import java.util.function.Consumer;
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
* jdk.jdeps/com.sun.tools.classfile
* @build toolbox.ToolBox toolbox.JavacTask
* @run main RuntimeNullChecks
* @ignore 8316628
*/

import java.util.*;
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
* @enablePreview
* @compile NullsInDeconstructionPatterns2.java
* @run main NullsInDeconstructionPatterns2
* @ignore 8316628
*/

import java.util.Objects;
1 change: 1 addition & 0 deletions test/langtools/tools/javac/patterns/PrettyTest.java
Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@
* @enablePreview
* @summary Test behavior of Pretty
* @modules jdk.compiler
* @ignore 8316628
*/

import java.io.IOException;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Trouble creating an anonymous value class with diamond syntax
* @compile -XDemitQDesc AnonymousValue.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses AnonymousValue
* @ignore 8316628
*/

import java.util.function.Function;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Allow anonymous classes to be value types
* @compile -XDemitQDesc AnonymousValueType.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses -Xverify:none AnonymousValueType
* @ignore 8316628
*/


Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @compile -XDemitQDesc ArrayCreationWithQuestion.java
* @run main/othervm -Xverify:none -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ArrayCreationWithQuestion
* @modules jdk.compiler
* @ignore 8316628
*/

import java.io.PrintWriter;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary LW2 array support in javac
* @compile -XDemitQDesc ArrayRelationsTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ArrayRelationsTest
* @ignore 8316628
*/

public value class ArrayRelationsTest {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Test that primitive classes work well with TWR
* @compile -XDemitQDesc AutoCloseableTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses AutoCloseableTest
* @ignore 8316628
*/

public class AutoCloseableTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Verify that instance methods are callable from ctor after all instance fields are DA.
* @compile -XDemitQDesc CanonicalCtorTest.java
* @run main/othervm -ea -XX:+EnableValhalla -XX:+EnablePrimitiveClasses CanonicalCtorTest
* @ignore 8316628
*/

public value class CanonicalCtorTest {
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@
* @compile -XDallowWithFieldOperator -XDenablePrimitiveClasses Point.java
* @compile -XDallowWithFieldOperator -XDenablePrimitiveClasses CastNullCheckTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses CastNullCheckTest
* @ignore 8316628
*/

public class CastNullCheckTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Verify that chained assignments in value constructors are lowered correctly.
* @compile -XDenablePrimitiveClasses ChainedAssignmentTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ChainedAssignmentTest
* @ignore 8316628
*/

public class ChainedAssignmentTest {
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@
* @modules jdk.jdeps/com.sun.tools.classfile
* @compile -XDenablePrimitiveClasses CheckFieldDescriptors.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses CheckFieldDescriptors
* @ignore 8316628
*/
*/

import com.sun.tools.classfile.*;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @compile -XDenablePrimitiveClasses CheckSeparateCompile0.java
* @compile -XDenablePrimitiveClasses CheckSeparateCompile.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses CheckSeparateCompile
* @ignore 8316628
*/

public class CheckSeparateCompile {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Temporary typing of inline class literals.
* @compile -XDenablePrimitiveClasses ClassLiteralTypingTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ClassLiteralTypingTest
* @ignore 8316628
*/

/* Given an inline class V that implements I1, I2, ... In,
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Regression test for bogus assertion failure.
* @compile -XDenablePrimitiveClasses CompilerNoBogusAssert.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses CompilerNoBogusAssert
* @ignore 8316628
*/

public class CompilerNoBogusAssert {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Test conditional expression typing involving inlines.
* @compile -XDenablePrimitiveClasses ConditionalInlineTypeTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ConditionalInlineTypeTest
* @ignore 8316628
*/

public class ConditionalInlineTypeTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test value instatiation using new/ctors by chaining constructors.
* @compile -XDenablePrimitiveClasses CtorChain.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses CtorChain
* @ignore 8316628
*/

public value class CtorChain {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Provide linguistic support to denote default values.
* @compile -XDenablePrimitiveClasses DefaultNonInlines.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses -Dtest.compiler.opts=-release=13 DefaultNonInlines
* @ignore 8316628
*/

public class DefaultNonInlines {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Test that inline types work well with enhanced for loop.
* @compile -XDenablePrimitiveClasses EnhancedForLoopTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses EnhancedForLoopTest
* @ignore 8316628
*/

import java.util.Iterator;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Poor interaction between explicit lambda parameters and nullable projection types.
* @compile -XDenablePrimitiveClasses ExplicitLambdaWithNullableTypes.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ExplicitLambdaWithNullableTypes
* @ignore 8316628
*/

import java.util.List;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Poor interaction between explicit lambda parameters and nullable projection types.
* @compile -XDenablePrimitiveClasses ExplicitLambdaWithNullableTypes2.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ExplicitLambdaWithNullableTypes2
* @ignore 8316628
*/

import java.util.List;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Poor interaction between explicit lambda parameters and nullable projection types.
* @compile -XDenablePrimitiveClasses ExplicitLambdaWithNullableTypes3.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ExplicitLambdaWithNullableTypes3
* @ignore 8316628
*/

import java.util.List;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Trouble assigning/casting to a value array type with parameterized element type
* @compile -XDenablePrimitiveClasses -XDenablePrimitiveClasses GenericArrayRegression.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses GenericArrayRegression
* @ignore 8316628
*/

public class GenericArrayRegression {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Javac does not properly parse nullable projection types of parameterized inline types
* @compile -XDenablePrimitiveClasses GenericsAndValues5.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses GenericsAndValues5
* @ignore 8316628
*/

import java.util.NoSuchElementException;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary [lworld] Improve typing of primitiveObject.getClass()
* @compile -XDenablePrimitiveClasses GetClassTypingTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses GetClassTypingTest
* @ignore 8316628
*/

public class GetClassTypingTest {
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
* @summary Test various inference scenarios.
* @compile -XDenablePrimitiveClasses InferredValueParameterizationTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses InferredValueParameterizationTest
* @ignore 8316628
*/

import java.util.List;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Diamond inference does not work with value classes
* @compile -XDenablePrimitiveClasses InlineDiamondTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses InlineDiamondTest
* @ignore 8316628
*/

public class InlineDiamondTest<E> {
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
* @modules jdk.jdeps/com.sun.tools.classfile
* @compile -XDenablePrimitiveClasses InnerClassAttributeValuenessTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses InnerClassAttributeValuenessTest
* @ignore 8316628
*/

import com.sun.tools.classfile.AccessFlags;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test value instatiation using new/ctors.
* @compile -XDenablePrimitiveClasses InnerValueNew.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses InnerValueNew
* @ignore 8316628
*/


Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Javac does not allow express casts between value types and their light weight box types
* @compile -XDenablePrimitiveClasses IntercastTest.java
* @run main/othervm -Xverify:none -XX:+EnableValhalla -XX:+EnablePrimitiveClasses IntercastTest
* @ignore 8316628
*/

public value class IntercastTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Javac does not allow express casts between value types and their light weight box types
* @compile -XDenablePrimitiveClasses IntercastTest2.java
* @run main/othervm -Xverify:none -XX:+EnableValhalla -XX:+EnablePrimitiveClasses IntercastTest2
* @ignore 8316628
*/

public value class IntercastTest2 {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test value instatiation using new/ctors.
* @compile -XDenablePrimitiveClasses LocalValueNew.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses LocalValueNew
* @ignore 8316628
*/


Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Javac forbids look ups on the light weight box type of a value type
* @compile -XDenablePrimitiveClasses LookupOnLoxTest.java
* @run main/othervm -Xverify:none -XX:+EnableValhalla -XX:+EnablePrimitiveClasses LookupOnLoxTest
* @ignore 8316628
*/

public value class LookupOnLoxTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] Javac forbids look ups on the light weight box type of a value type
* @compile -XDenablePrimitiveClasses LookupOnLoxTest2.java
* @run main/othervm -Xverify:none -XX:+EnableValhalla -XX:+EnablePrimitiveClasses LookupOnLoxTest2
* @ignore 8316628
*/

public value class LookupOnLoxTest2 {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Check that javac does not crash while computing LUB involving values.
* @compile -XDenablePrimitiveClasses LubWithInlines.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses LubWithInlines
* @ignore 8316628
*/

public class LubWithInlines {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test compiler on various constructs it had issues with.
* @compile -XDenablePrimitiveClasses NoCrashTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses NoCrashTest
* @ignore 8316628
*/

import java.util.ArrayList;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @modules jdk.jdeps/com.sun.tools.classfile
* @compile -XDenablePrimitiveClasses NoUnnecessaryCast.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses NoUnnecessaryCast
* @ignore 8316628
*/

import java.io.File;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test overload resolution.
* @compile -XDenablePrimitiveClasses OverloadingPhaseTest2.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses OverloadingPhaseTest2
* @ignore 8316628
*/

public class OverloadingPhaseTest2 {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary [lworld] default value creation should not impose raw types on users.
* @compile -XDenablePrimitiveClasses ParameterizedDefault.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ParameterizedDefault
* @ignore 8316628
*/

public value class ParameterizedDefault<E> {
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
* @modules jdk.jdeps/com.sun.tools.classfile
* @compile -XDenablePrimitiveClasses PreloadAttributeTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses PreloadAttributeTest
* @ignore 8316628
*/

import com.sun.tools.classfile.*;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test value instatiation using new/ctors.
* @compile -XDenablePrimitiveClasses QualifiedSuperCtor.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses QualifiedSuperCtor
* @ignore 8316628
*/

value class A {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test that qualified this based access to instance fields works ok.
* @compile -XDenablePrimitiveClasses QualifiedThisTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses QualifiedThisTest
* @ignore 8316628
*/

public value class QualifiedThisTest {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Check that we are able to get a class literal for a reference projection type
* @compile -XDenablePrimitiveClasses RefDotClass.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses RefDotClass
* @ignore 8316628
*/

public value class RefDotClass {
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
* @compile -XDenablePrimitiveClasses Range.java
* @compile -XDenablePrimitiveClasses SeparateCompileGenerics.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses SeparateCompileGenerics
* @ignore 8316628
*/

public class SeparateCompileGenerics {
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
* @compile -XDenablePrimitiveClasses SeparateCompileTest01.java
* @compile -XDenablePrimitiveClasses SeparateCompileTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses SeparateCompileTest
* @ignore 8316628
*/

public class SeparateCompileTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test value constructor code with side effects.
* @compile -XDenablePrimitiveClasses SideEffectTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses SideEffectTest
* @ignore 8316628
*/

public class SideEffectTest {
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
* @modules jdk.jdeps/com.sun.tools.classfile
* @compile -XDenablePrimitiveClasses SignatureTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses SignatureTest
* @ignore 8316628
*/

import com.sun.tools.classfile.*;
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
* @compile -XDenablePrimitiveClasses SmallSetTest.java
* @compile -XDenablePrimitiveClasses SmallSetTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses SmallSetTest
* @ignore 8316628
*/

public class SmallSetTest {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Javac has trouble compiling method references
* @compile -XDenablePrimitiveClasses StreamsTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses StreamsTest
* @ignore 8316628
*/

import java.util.Arrays;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Javac disallows calls to super.{hashCode(), equals(), toString()} on a primitive instance receiver
* @compile -XDenablePrimitiveClasses SuperHashCodeEqualsToStringTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses SuperHashCodeEqualsToStringTest
* @ignore 8316628
*/

public class SuperHashCodeEqualsToStringTest {
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Ensure that static factory methods are generated with the right qualifier.
* @compile -XDenablePrimitiveClasses TestQualifierOnInit.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses TestQualifierOnInit
* @ignore 8316628
*/


Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary Javac mistakenly treats references to _this_ as a reference to an instance field
* @compile -XDenablePrimitiveClasses ThisIsNotAnInstanceField.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ThisIsNotAnInstanceField
* @ignore 8316628
*/

public value class ThisIsNotAnInstanceField {
Original file line number Diff line number Diff line change
@@ -30,6 +30,7 @@
* @modules java.base/jdk.internal.value
* @compile -XDenablePrimitiveClasses UnifiedPrimitiveClassNestHostTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses UnifiedPrimitiveClassNestHostTest
* @ignore 8316628
*/

import java.util.Arrays;
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@
* @modules java.base/jdk.internal.value
* @compile -XDenablePrimitiveClasses ValueBootstrapMethodsTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses -Dvalue.bsm.salt=1 ValueBootstrapMethodsTest
* @ignore 8316628
*/

import java.util.List;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test that qualified this based access to instance fields works ok.
* @compile -XDenablePrimitiveClasses ValueConstructorRef.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ValueConstructorRef
* @ignore 8316628
*/

import java.util.function.Supplier;
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test value instatiation using new/ctors.
* @compile -XDenablePrimitiveClasses ValueNewReadWrite.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ValueNewReadWrite
* @ignore 8316628
*/

public value class ValueNewReadWrite {
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
* @summary Test that values code like a class - i.e are accepted in some places where only references used be, when suitable reference projection is used.
* @compile -XDenablePrimitiveClasses ValuesAsRefs.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ValuesAsRefs
* @ignore 8316628
*/
import java.util.ArrayList;

Original file line number Diff line number Diff line change
@@ -26,6 +26,7 @@
* @summary Test withfield behavior at runtime.
* @compile -XDenablePrimitiveClasses WithFieldRuntimeTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses WithFieldRuntimeTest
* @ignore 8316628
*/

public final value class WithFieldRuntimeTest {
Original file line number Diff line number Diff line change
@@ -30,7 +30,9 @@
* jdk.jdeps/com.sun.tools.classfile
* @compile -XDenablePrimitiveClasses ApplicableAnnotationsOnPrimitiveRecords.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ApplicableAnnotationsOnPrimitiveRecords
* @ignore 8316628
*/

import com.sun.tools.classfile.*;
import com.sun.tools.javac.util.Assert;
import java.lang.annotation.*;
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@
* @test
* @bug 8212175
* @summary Trouble creating an anonymous value class with diamond syntax
* @ignore 8316628
*/

import java.util.function.Function;
Original file line number Diff line number Diff line change
@@ -25,6 +25,7 @@
* @test
* @bug 8209400 8215246
* @summary Allow anonymous classes to be value types
* @ignore 8316628
*/

public class AnonymousValueType {
Original file line number Diff line number Diff line change
@@ -25,8 +25,10 @@
* @test
* @bug 8208067
* @summary Verify that instance methods are callable from ctor after all instance fields are DA.
* @ignore
*/

// see JDK-8316628
public value class CanonicalCtorTest {

private final int x, ymx;
Original file line number Diff line number Diff line change
@@ -29,6 +29,7 @@
* @summary javac should generate BSM to invoke the static factory for value class
* @compile -XDenablePrimitiveClasses ConstructorRefTest.java
* @run main/othervm -XX:+EnableValhalla -XX:+EnablePrimitiveClasses ConstructorRefTest
* @ignore 8316628
*/

import java.util.function.Supplier;
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
* jdk.jdeps/com.sun.tools.classfile
* @build toolbox.ToolBox toolbox.JavacTask
* @run main ValueObjectsBinaryCompatibilityTests
* @ignore 8316628
*/

import java.io.IOException;
Original file line number Diff line number Diff line change
@@ -30,8 +30,11 @@
* @compile AbstractValueSuper.java ConcreteValue.java
* @compile ConcreteValue.java
* @run main ConcreteValue
* @ignore
*/

// see JDK-8316628

public value class ConcreteValue extends AbstractValueSuper {
public static void main(String [] args) {
}