提交 058e9288 编写于 作者: J jjg

6525408: DiagnosticListener should receive MANDATORY_WARNING in standard compiler mode

Reviewed-by: darcy
上级 0f7e1b16
......@@ -741,7 +741,7 @@ public class JavaCompiler {
out.close();
}
return outFile;
}
}''
}
/** Generate code and emit a class file for a given class
......
/*
* Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -49,6 +49,15 @@ public interface Diagnostic<S> {
/**
* Kinds of diagnostics, for example, error or warning.
*
* The kind of a diagnostic can be used to determine how the
* diagnostic should be presented to the user. For example,
* errors might be colored red or prefixed with the word "Error",
* while warnings might be colored yellow or prefixed with the
* word "Warning". There is no requirement that the Kind
* should imply any inherent semantic meaning to the message
* of the diagnostic: for example, a tool might provide an
* option to report all warnings as errors.
*/
enum Kind {
/**
......@@ -63,7 +72,7 @@ public interface Diagnostic<S> {
/**
* Problem similar to a warning, but is mandated by the tool's
* specification. For example, the Java&trade; Language
* Specification, 3rd Ed. mandates warnings on certain
* Specification mandates warnings on certain
* unchecked operations and the use of deprecated methods.
*/
MANDATORY_WARNING,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册