JDK-7086261 : javac doesn't report error as expected, it only reports ClientCodeWrapper$DiagnosticSourceUnwrapper
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-09-02
  • Updated: 2012-02-24
  • Resolved: 2012-02-24
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.
JDK 7 JDK 8
7u2Fixed 8 b06Fixed
Description
Due to 7074416 changes, the javac doesn't expect error as expected, it only reports something like 
com.sun.tools.javac.api.ClientCodeWrapper$DiagnosticSourceUnwrapper@9df6cf

see comments for test case

Comments
SUGGESTED FIX A webrev of this fix is available at the following URL: http://hg.openjdk.java.net/jdk8/tl/langtools/rev/ec27e5befa53
02-09-2011

EVALUATION Missing override for toString() in ClientCodeUnwrapper.DiagnosticSourceUnwrapper
02-09-2011