From f3a001817574db7c5b1b90f3a9f70ab00f94fa3a Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 7 Apr 2020 06:25:00 -0400 Subject: [PATCH] Update link to JDK 14 compiler bug This commit updates the link to the JDK 14 compiler bug that we have found. At the time that we committed the workaround, we had a submission ID, but not yet the public bug URL. This commit adds the public bug URL. --- .../elasticsearch/example/customsuggester/CustomSuggestion.java | 2 +- .../search/suggest/completion/CompletionSuggestion.java | 2 +- .../elasticsearch/search/suggest/phrase/PhraseSuggestion.java | 2 +- .../org/elasticsearch/search/suggest/term/TermSuggestion.java | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java index b238651039a..a4660c457cb 100644 --- a/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java +++ b/plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java @@ -97,7 +97,7 @@ public class CustomSuggestion extends Suggest.Suggestion PARSER.declareString((entry, dummy) -> entry.dummy = dummy, DUMMY); /* * The use of a lambda expression instead of the method reference Entry::addOptions is a workaround for a JDK 14 compiler bug. - * The bug ID is 9064309. + * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214 */ PARSER.declareObjectArray((e, o) -> e.addOptions(o), (p, c) -> Option.fromXContent(p), new ParseField(OPTIONS)); } diff --git a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java b/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java index 6b90c2eb253..02b0f988eb9 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java +++ b/server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java @@ -271,7 +271,7 @@ public final class CompletionSuggestion extends Suggest.Suggestion e.addOptions(o), (p,c) -> Option.fromXContent(p), new ParseField(OPTIONS)); } diff --git a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java b/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java index fcb7a0cff03..034b00e6a15 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java +++ b/server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java @@ -125,7 +125,7 @@ public class PhraseSuggestion extends Suggest.Suggestion declareCommonFields(PARSER); /* * The use of a lambda expression instead of the method reference Entry::addOptions is a workaround for a JDK 14 compiler bug. - * The bug ID is 9064309. + * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214 */ PARSER.declareObjectArray((e, o) -> e.addOptions(o), (p, c) -> Option.fromXContent(p), new ParseField(OPTIONS)); } diff --git a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java b/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java index 26e611da76f..96936b39373 100644 --- a/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java +++ b/server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java @@ -190,7 +190,7 @@ public class TermSuggestion extends Suggestion { declareCommonFields(PARSER); /* * The use of a lambda expression instead of the method reference Entry::addOptions is a workaround for a JDK 14 compiler bug. - * The bug ID is 9064309. + * The bug is: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242214 */ PARSER.declareObjectArray((e, o) -> e.addOptions(o), (p, c) -> Option.fromXContent(p), new ParseField(OPTIONS)); }