Skip to content
Permalink
Browse files
8261264: [lworld] runtime/valhalla/inlinetypes tests fail to compile
Reviewed-by: rriggs
  • Loading branch information
Harold Seigel committed Feb 5, 2021
1 parent 5f1e8d9 commit c4f63d286149e52e27eb6ed21b9d437237d9b598
Showing 2 changed files with 4 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2019, 2021, 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
@@ -177,7 +177,7 @@ public void testAlot() {
}

boolean shouldEqualSelf(Object a) {
return acmpModeInlineAlwaysFalse ? (!(a != null && a.getClass().isInlineClass())) : true;
return acmpModeInlineAlwaysFalse ? (!(a != null && a.getClass().isPrimitiveClass())) : true;
}

void checkEqual(Object a, Object b, boolean isEqual) {
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2018, 2021, 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
@@ -289,7 +289,7 @@ void testSanityCheckcasts() {
assertTrue(myInts instanceof MyInt.ref[]);

Class<?> cls = MyInt.class;
assertTrue(cls.isInlineClass());
assertTrue(cls.isPrimitiveClass());
Object arrObj = Array.newInstance(cls, 1);
assertTrue(arrObj instanceof Object[], "Not Object array");
assertTrue(arrObj instanceof Comparable[], "Not Comparable array");

0 comments on commit c4f63d2

Please sign in to comment.