New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FindOverridableMethodCall.visitBootstrapMethods(BootstrapMethods) contains invisible \u200b character #1903
Labels
Comments
iloveeclipse
changed the title
FindOverridableMethodCall.visitBootstrapMethods(BootstrapMethods) contains invisible \u200b characters
FindOverridableMethodCall.visitBootstrapMethods(BootstrapMethods) contains invisible \u200b character
Jan 5, 2022
Patch that shows the difference (just run it on command line)
Output in Eclipse (note the last
|
iloveeclipse
added a commit
that referenced
this issue
Jan 5, 2022
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) Sonce this character is invisible, it was added by mistake and should be removed to allow SpotBugs compilation in Eclipse. This fixes issue #1903.
iloveeclipse
added a commit
that referenced
this issue
Jan 5, 2022
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.
1 task
This can find all non-ascii characters in java code in the repo
|
iloveeclipse
added a commit
that referenced
this issue
Jan 5, 2022
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.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm unable to compile current spotbugs code in Eclipse because of
FindOverridableMethodCall.visitBootstrapMethods(BootstrapMethods)
method.The method ends with
\u200b
unicode character and Eclipse compiler assumes that this method can't override thevisitBootstrapMethods
defined in theorg.apache.bcel.classfile.Visitor.visitBootstrapMethods(BootstrapMethods)
.The method was added in #1716.
I will push a patch to remove the invisible character and will investigate which compiler is right.
I see that Eclipse 4.12 - 4.22 accepts
\u200b
in source file and preserves as part of the method name in the class file.However, javac 1.8 - 17 accepts
\u200b
in the source file but does not preserve it as part of the method name in the class file.Reported bug against ecj compiler: https://bugs.eclipse.org/bugs/show_bug.cgi?id=578063
The text was updated successfully, but these errors were encountered: