[fedora-java] Java 7 can't understand some chars

Ismael Olea ismael at olea.org
Mon Nov 21 23:50:06 UTC 2011


On Mon, Nov 21, 2011 at 10:30 PM, Deepak Bhole <dbhole at redhat.com> wrote:


>
> This is expected behaviour with Java 7. Until Java 6, encoding errors
> were only presented as warnings. Now they are errors:
>
> http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html
>
> "This is the default value. No language changes were introduced in Java
> SE 6. However, encoding errors in source files are now reported as
> errors, instead of warnings, as previously."
>

Aha

You can get around it by specifying -source 1.6, but fixing the source
> is a better fix IMO.
>

Thanks for the tip! I fixed it[1]

btw, which is the default encoding for openjdk?


[1] http://koji.fedoraproject.org/koji/taskinfo?taskID=3530965
-- 

Ismael Olea

http://olea.org/diario/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/java-devel/attachments/20111122/9dd4f25b/attachment.html 


More information about the java-devel mailing list