mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8299183: Invokers.checkExactType passes parameters to create WMTE in opposite order
Reviewed-by: iris, jpai
This commit is contained in:
parent
8b0133f276
commit
a86b6f6fde
4 changed files with 102 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue