From 5aac9cfde0e9194c6b9b9ecaf018d864fae909fe Mon Sep 17 00:00:00 2001 From: Mike Cifelli Date: Sat, 20 Oct 2018 13:03:04 -0400 Subject: [PATCH] Allow the interpreter to start again - The issue was with the reflections library: https://github.com/ronmamo/reflections/issues/81 --- pom.xml | 2 +- src/main/kotlin/table/FunctionTable.kt | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index c9953bb..7b167c8 100644 --- a/pom.xml +++ b/pom.xml @@ -175,7 +175,7 @@ org.reflections reflections - 0.9.11 + 0.9.9 diff --git a/src/main/kotlin/table/FunctionTable.kt b/src/main/kotlin/table/FunctionTable.kt index e1b4a91..104be72 100644 --- a/src/main/kotlin/table/FunctionTable.kt +++ b/src/main/kotlin/table/FunctionTable.kt @@ -8,11 +8,12 @@ import org.reflections.Reflections object FunctionTable { private val table = mutableMapOf() - private val reflections = Reflections("function") - private val allBuiltIns = - reflections.getTypesAnnotatedWith(FunctionNames::class.java) + + private val allBuiltIns = with(Reflections("function.builtin")) { + getTypesAnnotatedWith(FunctionNames::class.java) .filterIsInstance>() .toSet() + } init { initializeFunctionTable(allBuiltIns)