82 JAVAC_ERROR(StringBinaryPredicate.CONTAINS, MSG_ERR, "error:", "compiler.err"), |
82 JAVAC_ERROR(StringBinaryPredicate.CONTAINS, MSG_ERR, "error:", "compiler.err"), |
83 /** a javac warning */ |
83 /** a javac warning */ |
84 JAVAC_WARNING(StringBinaryPredicate.CONTAINS, MSG_WARN, "warning:", "compiler.warn"), |
84 JAVAC_WARNING(StringBinaryPredicate.CONTAINS, MSG_WARN, "warning:", "compiler.warn"), |
85 /** a javac note */ |
85 /** a javac note */ |
86 JAVAC_NOTE(StringBinaryPredicate.CONTAINS, MSG_INFO, "note:", "compiler.note"), |
86 JAVAC_NOTE(StringBinaryPredicate.CONTAINS, MSG_INFO, "note:", "compiler.note"), |
|
87 /** a javac raw error (these typically come from a build misconfiguration - such as a bad javac flag) */ |
|
88 JAVAC_RAW_ERROR(StringBinaryPredicate.STARTS_WITH, MSG_INFO, "javac: "), |
87 /** continuation of some javac error message */ |
89 /** continuation of some javac error message */ |
88 JAVAC_NESTED_DIAG(StringBinaryPredicate.STARTS_WITH, MSG_INFO, " "), |
90 JAVAC_NESTED_DIAG(StringBinaryPredicate.STARTS_WITH, MSG_INFO, " "), |
89 /** a javac crash */ |
91 /** a javac crash */ |
90 JAVAC_CRASH(StringBinaryPredicate.STARTS_WITH, MSG_ERR, "An exception has occurred in the compiler"), |
92 JAVAC_CRASH(StringBinaryPredicate.STARTS_WITH, MSG_ERR, "An exception has occurred in the compiler"), |
91 /** jtreg test success */ |
93 /** jtreg test success */ |
124 * This enum is used to represent the list of tasks we need to keep track of during logging. |
126 * This enum is used to represent the list of tasks we need to keep track of during logging. |
125 */ |
127 */ |
126 enum Task { |
128 enum Task { |
127 /** exec task - invoked during compilation */ |
129 /** exec task - invoked during compilation */ |
128 JAVAC("exec", MessageKind.JAVAC_ERROR, MessageKind.JAVAC_WARNING, MessageKind.JAVAC_NOTE, |
130 JAVAC("exec", MessageKind.JAVAC_ERROR, MessageKind.JAVAC_WARNING, MessageKind.JAVAC_NOTE, |
129 MessageKind.JAVAC_NESTED_DIAG, MessageKind.JAVAC_CRASH), |
131 MessageKind.JAVAC_RAW_ERROR, MessageKind.JAVAC_NESTED_DIAG, MessageKind.JAVAC_CRASH), |
130 /** jtreg task - invoked during test execution */ |
132 /** jtreg task - invoked during test execution */ |
131 JTREG("jtreg", MessageKind.JTREG_TEST_PASSED, MessageKind.JTREG_TEST_FAILED, MessageKind.JTREG_TEST_ERROR, MessageKind.JTREG_TEST_REPORT), |
133 JTREG("jtreg", MessageKind.JTREG_TEST_PASSED, MessageKind.JTREG_TEST_FAILED, MessageKind.JTREG_TEST_ERROR, MessageKind.JTREG_TEST_REPORT), |
132 /** initial synthetic task when the logger is created */ |
134 /** initial synthetic task when the logger is created */ |
133 ROOT("") { |
135 ROOT("") { |
134 @Override |
136 @Override |