Re: Java 7 can't understand some chars

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Orion Poplawski <orion@xxxxxxxxxxxxx> [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@xxxxxxxxxxxxx
> Boulder, CO 80301              http://www.cora.nwra.com
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/java-devel



[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux