RFR: 8065138 - Encodings.isRecognizedEnconding sometimes fails to recognize 'UTF8'

Aleksey Shipilev aleksey.shipilev at oracle.com
Wed Nov 19 12:02:19 UTC 2014

On 11/19/2014 02:17 PM, Daniel Fuchs wrote:
> webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8065138/webrev.00/

Looks good. (not a Reviewer)

> The root of the issue is with 
> jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/Encodings.properties
>  It contains a special character 'å' which confuses the build system
> on Mavericks. The Encodings.properties file ends up truncated in
> resources.jar - it contains only one line (the line before the
> special character was encountered).

ಠ_ಠ... (╯°□°)╯︵ ┻━┻

> The fix is to replace the special character 'å' by its unicode representation \u00e5.

Can you also look if these files are corrupted in your build as well?

$ grep --include=\*.java --include=\*.properties -R --color='auto' -n -v
-e "^[[:alnum:][:punct:][:space:]]*$"

I see more hits in jdk/ within java.desktop and java.xml.crypto.


More information about the core-libs-dev mailing list