Skip to content

Commit 55b36c6

Browse files
author
Harold Seigel
committed
8276825: hotspot/runtime/SelectionResolution test errors
Reviewed-by: dholmes, shade
1 parent 0f23c6a commit 55b36c6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/hotspot/jtreg/runtime/SelectionResolution/classes/selectionresolution/ClassBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -112,7 +112,7 @@ private void addHelperMethod(int classId) {
112112
int packageId = classdata.get(classId).packageId.ordinal();
113113
Clazz C = helpers[packageId];
114114
if (C == null) {
115-
C = new Clazz(getPackageName(packageId) + "Helper", -1, ACC_PUBLIC);
115+
C = new Clazz(getPackageName(packageId) + "Helper", ACC_PUBLIC, -1);
116116
helpers[packageId] = C;
117117
classes.add(C);
118118
}

test/hotspot/jtreg/runtime/SelectionResolution/classes/selectionresolution/Clazz.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -69,7 +69,7 @@ public Clazz(String name, String extending, int access, int index, String... imp
6969
* @param implementing Interfaces implemented
7070
*/
7171
public Clazz(String name, String extending, int access, int classFileVersion, int index, String... implementing) {
72-
super(name, extending == null ? "java/lang/Object" : extending, access + ACC_SUPER, classFileVersion, index, implementing);
72+
super(name, extending == null ? "java/lang/Object" : extending, access | ACC_SUPER, classFileVersion, index, implementing);
7373
// Add the default constructor
7474
addMethod("<init>", "()V", ACC_PUBLIC).makeConstructor(extending, false);
7575
}

test/hotspot/jtreg/runtime/SelectionResolution/classes/selectionresolution/TestBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -36,7 +36,7 @@ public TestBuilder(int classId, SelectionResolutionTestCase testcase) {
3636
super(testcase);
3737

3838
// Make a public class Test that contains all our test methods
39-
testClass = new Clazz("Test", null, -1, ACC_PUBLIC);
39+
testClass = new Clazz("Test", null, ACC_PUBLIC, -1);
4040

4141
// Add a main method
4242
mainMethod = testClass.addMethod("main", "([Ljava/lang/String;)V", ACC_PUBLIC + ACC_STATIC);

0 commit comments

Comments
 (0)