This is an automated email from the ASF dual-hosted git repository.
lkishalmi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 9c375dd The field name of JCInstanceOf.clazz was changed to
JCInstanceOf.pattern in late 2019 in javac; this class already contains a
method to look up the correct field via reflection, but one case of directly
referencing the original field was not changed, and causes a NoSuchFieldError
in the move inner to outer level refactoring (and likely elsewhere).
9c375dd is described below
commit 9c375dda433458d2655207fd1c4d7fb631683c89
Author: Tim Boudreau <[email protected]>
AuthorDate: Sun Nov 1 10:10:24 2020 -0500
The field name of JCInstanceOf.clazz was changed to JCInstanceOf.pattern in
late 2019 in javac;
this class already contains a method to look up the correct field via
reflection, but
one case of directly referencing the original field was not changed, and
causes a
NoSuchFieldError in the move inner to outer level refactoring (and likely
elsewhere).
---
.../src/org/netbeans/modules/java/source/save/CasualDiff.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
b/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
index f2a7956..b26570f 100644
---
a/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
+++
b/java/java.source.base/src/org/netbeans/modules/java/source/save/CasualDiff.java
@@ -5895,7 +5895,7 @@ public class CasualDiff {
}
private boolean matchTypeTest(JCInstanceOf t1, JCInstanceOf t2) {
- return treesMatch(t1.clazz, t2.clazz) && treesMatch(t1.expr, t2.expr);
+ return treesMatch(getPattern(t1), getPattern(t2)) &&
treesMatch(t1.expr, t2.expr);
}
private boolean matchIndexed(JCArrayAccess t1, JCArrayAccess t2) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists