From 35d8922c1855aa9e72ea1921a8545dfce870a2d2 Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Wed, 5 Jan 2022 16:23:07 +0100 Subject: [PATCH] Remove \u200b from FindOverridableMethodCall.visitBootstrapMethods() The method ends with \u200b unicode character and Eclipse compiler assumes that this method can't override the visitBootstrapMethods defined in the org.apache.bcel.classfile.Visitor.visitBootstrapMethods(BootstrapMethods) Since this character is invisible, it was added by mistake and should be removed to allow SpotBugs compilation in Eclipse. This fixes issue #1903. --- CHANGELOG.md | 2 ++ .../edu/umd/cs/findbugs/detect/FindOverridableMethodCall.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a405d3b987..be8c79183c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ This is the changelog for SpotBugs. This follows [Keep a Changelog v1.0.0](http: Currently the versioning policy of this project follows [Semantic Versioning v2.0.0](http://semver.org/spec/v2.0.0.html). ## Unreleased - 2022-??-?? +### Fixed +- Fixed spotbugs build with ecj compiler ([#1903](https://github.com/spotbugs/spotbugs/issues/1903)) ## 4.5.3 - 2022-01-04 ### Security diff --git a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindOverridableMethodCall.java b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindOverridableMethodCall.java index b96fe8b8c12..5d1e0a9cd4a 100644 --- a/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindOverridableMethodCall.java +++ b/spotbugs/src/main/java/edu/umd/cs/findbugs/detect/FindOverridableMethodCall.java @@ -98,7 +98,7 @@ public void visit(JavaClass obj) { } @Override - public void visitBootstrapMethods​(BootstrapMethods obj) { + public void visitBootstrapMethods(BootstrapMethods obj) { if (getXClass().isFinal()) { return; }