summaryrefslogtreecommitdiffstats
path: root/config-model/src/main/javacc
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@gmail.com>2022-06-01 12:57:12 +0200
committergjoranv <gv@verizonmedia.com>2022-06-08 11:45:24 +0200
commit19aee708f9b569f50397c601a123c038c123d894 (patch)
treeb5414e00f3c3500e08e02a8933a81bb0a103a3b4 /config-model/src/main/javacc
parentded9c1c3d8a93bd0c7ff8bc28d5d3ecb85056b74 (diff)
Remove on Vespa 8
Diffstat (limited to 'config-model/src/main/javacc')
-rw-r--r--config-model/src/main/javacc/SchemaParser.jj5
1 files changed, 2 insertions, 3 deletions
diff --git a/config-model/src/main/javacc/SchemaParser.jj b/config-model/src/main/javacc/SchemaParser.jj
index 97d5925097f..2374098697d 100644
--- a/config-model/src/main/javacc/SchemaParser.jj
+++ b/config-model/src/main/javacc/SchemaParser.jj
@@ -1630,7 +1630,7 @@ void rankingConstant(ParsedSchema schema) :
{
( <CONSTANT> name = identifier() lbrace()
(path = fileItem() { pathType = DistributableResource.PathType.FILE; }
- | path = uriItem() { pathType = DistributableResource.PathType.URI; } // Undocumented. TODO: Remove on Vespa 8
+ | path = uriItem() { pathType = DistributableResource.PathType.URI; } // Undocumented. Remove?
| type = tensorTypeWithPrefix(rankingConstantErrorMessage(name)) (<NL>)*
)+
<RBRACE>
@@ -1789,8 +1789,7 @@ void function(ParsedRankProfile profile) :
func.setInline(inline);
var old = profile.addOrReplaceFunction(func);
if (old != null) {
- /* TODO disallow this for Vespa 8 */
- deployLogger.logApplicationPackage(Level.WARNING, "Function '" + func.name()
+ throw new IllegalArgumentException("Function '" + func.name()
+ "' is defined twice in rank profile '"
+ profile.name() + "'");
}