You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/12/21 04:28:30 UTC
[groovy] 01/02: revert binary incompatible change - keep old method as deprecated
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
commit 8be41c31fd42671b20e0d59b1caefb572d437f2a
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Dec 21 14:26:55 2022 +1000
revert binary incompatible change - keep old method as deprecated
---
.../vmplugin/v8/IndyGuardsFiltersAndSignatures.java | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java b/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java
index 97ed448290..ba38b196fe 100644
--- a/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java
+++ b/src/main/java/org/codehaus/groovy/vmplugin/v8/IndyGuardsFiltersAndSignatures.java
@@ -198,6 +198,22 @@ public class IndyGuardsFiltersAndSignatures {
return o.getClass() == c;
}
+ /* No longer used - for backwards compatibility only */
+ @Deprecated
+ public static boolean sameClasses(Object[] cs, Object[] os) {
+ for (int i = 0; i < cs.length; i++) {
+ Object c = cs[i];
+ if (null == c) continue;
+
+ Object o = os[i];
+ if (null == o) return false;
+
+ if (o.getClass() != c.getClass())
+ return false;
+ }
+ return true;
+ }
+
/**
* Guard to check if the provided objects have the same
* class as the provided classes.