unicode characters causing javac errors [hotpatch-for-apache-log4j2] - TagMerge

unicode characters causing javac errors [hotpatch-for-apache-log4j2]

AnandSankannaAsked 5 months ago

Thank you for posting this patch to the public. I fixed the issue locally by simply deleting the unicode characters, would still like to report it. The issue occurred in the License section of comments.

javac -XDignore.symbol.file=true -cp %JAVA_HOME%/lib/tools.jar Log4jHotPatch.java Log4jHotPatch.java:4: error: unmappable character for encoding Cp1252

  • Licensed under the Apache License, Version 2.0 (the ΓÇ£LicenseΓÇ?). ^ Log4jHotPatch.java:10: error: unmappable character for encoding Cp1252
  • or in the ΓÇ£licenseΓÇ? file accompanying this file. This file is distributed ^ Log4jHotPatch.java:11: error: unmappable character for encoding Cp1252
  • on an ΓÇ£AS ISΓÇ? BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ^ 3 errors

Source: link

rschmittAnswered 5 months ago

Is this fixed by compiling with javac -encoding utf8?

AnandSankannaAnswered 5 months ago

Yes, that option also works to fix the compiler errors. Thank you!

lutkerdAnswered 5 months ago

Looks like @rschmitt fixed this.

Recent Issues

    Programming Languages