JDK-5048557 : javac fails to compile code with encoding errors.
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: solaris_10,5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,solaris_8,solaris_10
  • CPU: generic
  • Submitted: 2004-05-17
  • Updated: 2017-05-16
  • Resolved: 2004-05-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0 b54Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Under 4767128 we changed javac to give warnings (-source 1.4 or lower) or hard
errors (-source 1.5) when the source file contains a sequence of bytes that is
illegal according to the specified (or, if none was specified, the default)
encoding.  Since the default was -source 1.4 at the time, this had the effect
of causing warning messages to be given for encoding problems, which only
became errors when the user specified -source 1.5.

Under 5028634 we changed the default -source setting from 1.4 to 1.5.  That
introduced a number of subtle and uncommon incompatibilities.  However, when
we considered and ultimately decided to make that change we forgot to consider
encoding errors.  In the little time since this version has been available
(build 49 was promoted 19 days ago) I've received five bug reports or
complaints from users about this problem.  See, for example, 5045861.  Also,
~100 failing regression after the change was made were identified as caused by
this issue.

I propose that we relax javac's treatment of encoding errors in 1.5 - making
it a warning instead of an error - and plan to make it a hard error in some
future release (1.6?).  I'm afraid that merely documenting the issue will
not relieve our users' frustration.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger-rc FIXED IN: tiger-rc INTEGRATED IN: tiger-b54 tiger-rc
14-06-2004

PUBLIC COMMENTS ...
10-06-2004

EVALUATION Should be fixed in Tiger, if at all. ###@###.### 2004-05-17
17-05-2004