src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/Diagnostic.java
changeset 50878 fb7800b66c92
parent 47216 71c04702a3d5
equal deleted inserted replaced
50877:700fffd3c871 50878:fb7800b66c92
    38  * {@link #NOPOS}) and 0 are not valid line or column numbers.
    38  * {@link #NOPOS}) and 0 are not valid line or column numbers.
    39  *
    39  *
    40  * <p>Line terminator is as defined in ECMAScript specification which is one
    40  * <p>Line terminator is as defined in ECMAScript specification which is one
    41  * of { &#92;u000A, &#92;u000B, &#92;u2028, &#92;u2029 }.
    41  * of { &#92;u000A, &#92;u000B, &#92;u2028, &#92;u2029 }.
    42  *
    42  *
       
    43  * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool
       
    44  * are deprecated with the intent to remove them in a future release.
       
    45  *
    43  * @since 9
    46  * @since 9
    44  */
    47  */
       
    48 @Deprecated(since="11", forRemoval=true)
    45 public interface Diagnostic {
    49 public interface Diagnostic {
    46 
    50 
    47     /**
    51     /**
    48      * Kinds of diagnostics, for example, error or warning.
    52      * Kinds of diagnostics, for example, error or warning.
    49      *
    53      *
    53      * while warnings might be colored yellow or prefixed with the
    57      * while warnings might be colored yellow or prefixed with the
    54      * word "Warning". There is no requirement that the Kind
    58      * word "Warning". There is no requirement that the Kind
    55      * should imply any inherent semantic meaning to the message
    59      * should imply any inherent semantic meaning to the message
    56      * of the diagnostic: for example, a tool might provide an
    60      * of the diagnostic: for example, a tool might provide an
    57      * option to report all warnings as errors.
    61      * option to report all warnings as errors.
       
    62      *
       
    63      * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool
       
    64      * are deprecated with the intent to remove them in a future release.
    58      */
    65      */
       
    66     @Deprecated(since="11", forRemoval=true)
    59     enum Kind {
    67     enum Kind {
    60         /**
    68         /**
    61          * Problem which prevents the tool's normal completion.
    69          * Problem which prevents the tool's normal completion.
    62          */
    70          */
    63         ERROR,
    71         ERROR,