diff -r b0918e7eb16b -r 87dff934a38a langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java --- a/langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java Mon May 02 12:57:05 2016 +0200 +++ b/langtools/src/jdk.jshell/share/classes/jdk/jshell/Diag.java Mon May 02 08:54:14 2016 -0700 @@ -36,12 +36,18 @@ // Simplified view on compiler Diagnostic. /** + * In-package creation only. + */ + Diag() { + } + + /** * Used to signal that no position is available. */ public final static long NOPOS = Diagnostic.NOPOS; /** - * Is this diagnostic and error (as opposed to a warning or note) + * Is this diagnostic an error (as opposed to a warning or note) * @return true if this diagnostic is an error */ public abstract boolean isError();