From 2d1d2b58f3628f1ad5dfde0d4874067090dd5f93 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Tue, 29 Mar 2016 14:13:59 +0300 Subject: [PATCH] Fix double quotes in diagnostic messages For diagnostics without any parameters, the given text is simply rendered as a String, so no symbols should be escaped. For diagnostics with parameters, the format in java.text.MessageFormat is used, so one single quote is erased and two single quotes become one single quote in the rendered text. Original commit: 8316953259669822fc27400c4ac7733490128635 --- .../incremental/classHierarchyAffected/enumEntryAdded/build.log | 2 +- .../classHierarchyAffected/sealedClassImplAdded/build.log | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryAdded/build.log b/jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryAdded/build.log index b8d96cbc562..ff1a4bbd2cb 100644 --- a/jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryAdded/build.log +++ b/jps/jps-plugin/testData/incremental/classHierarchyAffected/enumEntryAdded/build.log @@ -26,7 +26,7 @@ End of files Exit code: ABORT ------------------------------------------ COMPILATION FAILED -when expression must be exhaustive, add necessary 'C' branch or 'else' branch instead +'when' expression must be exhaustive, add necessary 'C' branch or 'else' branch instead ================ Step #2 ================= diff --git a/jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/build.log b/jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/build.log index eaaa6d520ec..5ea3c686357 100644 --- a/jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/build.log +++ b/jps/jps-plugin/testData/incremental/classHierarchyAffected/sealedClassImplAdded/build.log @@ -22,7 +22,7 @@ End of files Exit code: ABORT ------------------------------------------ COMPILATION FAILED -when expression must be exhaustive, add necessary 'is C' branch or 'else' branch instead +'when' expression must be exhaustive, add necessary 'is C' branch or 'else' branch instead ================ Step #2 =================