Przeglądaj źródła

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.
Jason Tedor 5 lat temu
rodzic
commit
cda31879b5

+ 1 - 1
plugins/examples/custom-suggester/src/main/java/org/elasticsearch/example/customsuggester/CustomSuggestion.java

@@ -97,7 +97,7 @@ public class CustomSuggestion extends Suggest.Suggestion<CustomSuggestion.Entry>
             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));
         }

+ 1 - 1
server/src/main/java/org/elasticsearch/search/suggest/completion/CompletionSuggestion.java

@@ -266,7 +266,7 @@ public final class CompletionSuggestion extends Suggest.Suggestion<CompletionSug
             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));
         }

+ 1 - 1
server/src/main/java/org/elasticsearch/search/suggest/phrase/PhraseSuggestion.java

@@ -125,7 +125,7 @@ public class PhraseSuggestion extends Suggest.Suggestion<PhraseSuggestion.Entry>
             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));
         }

+ 1 - 1
server/src/main/java/org/elasticsearch/search/suggest/term/TermSuggestion.java

@@ -184,7 +184,7 @@ public class TermSuggestion extends Suggestion<TermSuggestion.Entry> {
             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));
         }