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

Deepak Bhole dbhole at redhat.com
Tue Nov 22 00:36:27 UTC 2011


* Orion Poplawski <orion at cora.nwra.com> [2011-11-21 19:04]:
> On 11/21/2011 02:30 PM, Deepak Bhole 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."
> >
> >You can get around it by specifying -source 1.6, but fixing the source
> >is a better fix IMO.
> 
> How does one fix the source?
>

By removing the encoding errors. The problem only occurs if there is an
error in the encoding i.e. file contains characters not defined by
that encoding.

Cheers,
Deepak
 
> 
> -- 
> Orion Poplawski
> Technical Manager                     303-415-9701 x222
> NWRA/CoRA Division                    FAX: 303-415-9702
> 3380 Mitchell Lane                  orion at cora.nwra.com
> Boulder, CO 80301              http://www.cora.nwra.com


More information about the java-devel mailing list