8299183: Invokers.checkExactType passes parameters to create WMTE in opposite order

Reviewed-by: iris, jpai
This commit is contained in:
Mandy Chung 2023-01-10 17:05:33 +00:00
parent 8b0133f276
commit a86b6f6fde
4 changed files with 102 additions and 18 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2023, 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
@ -2083,8 +2083,8 @@ public abstract sealed class VarHandle implements Constable
@DontInline
private final void throwWrongMethodTypeException(VarHandle.AccessDescriptor ad) {
throw new WrongMethodTypeException("expected " + accessModeType(ad.type) + " but found "
+ ad.symbolicMethodTypeExact);
throw new WrongMethodTypeException("handle's method type " + accessModeType(ad.type)
+ " but found " + ad.symbolicMethodTypeExact);
}
@ForceInline