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

Daniel Fuchs daniel.fuchs at oracle.com
Wed Nov 19 13:44:17 UTC 2014


Hi Aleksey,

On 19/11/14 13:02, Aleksey Shipilev wrote:
> 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.
>

.java file should not be an issue - and I suspect message catalogs
should not be either (they are compiled into .class files - they don't
end up in resources.jar)

So I ran your script taking into account properties file only, and
compared with the properties found in resources.jar.

It seems that 
jdk/src/java.xml.crypto/share/classes/com/sun/org/apache/xml/internal/security/resource/xmlsecurity_de.properties 
suffers from
the same issue. I will log a bug for that.

There is also another outstanding issue with the build process
(concerning '#' character embedded in property values)
which seems to be affecting more than JAXP: JDK-8043146
Maybe we should find a owner for that one too.

Thanks for the suggestion,

-- daniel




More information about the core-libs-dev mailing list