equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
73 */ |
73 */ |
74 private DynamicCallSiteDesc(DirectMethodHandleDesc bootstrapMethod, |
74 private DynamicCallSiteDesc(DirectMethodHandleDesc bootstrapMethod, |
75 String invocationName, |
75 String invocationName, |
76 MethodTypeDesc invocationType, |
76 MethodTypeDesc invocationType, |
77 ConstantDesc[] bootstrapArgs) { |
77 ConstantDesc[] bootstrapArgs) { |
78 this.invocationName = validateMemberName(requireNonNull(invocationName)); |
78 this.invocationName = validateMemberName(requireNonNull(invocationName), true); |
79 this.invocationType = requireNonNull(invocationType); |
79 this.invocationType = requireNonNull(invocationType); |
80 this.bootstrapMethod = requireNonNull(bootstrapMethod); |
80 this.bootstrapMethod = requireNonNull(bootstrapMethod); |
81 this.bootstrapArgs = requireNonNull(bootstrapArgs.clone()); |
81 this.bootstrapArgs = requireNonNull(bootstrapArgs.clone()); |
82 if (invocationName.length() == 0) |
82 if (invocationName.length() == 0) |
83 throw new IllegalArgumentException("Illegal invocation name: " + invocationName); |
83 throw new IllegalArgumentException("Illegal invocation name: " + invocationName); |