Allow the interpreter to start again

- The issue was with the reflections library:
   https://github.com/ronmamo/reflections/issues/81
This commit is contained in:
Mike Cifelli 2018-10-20 13:03:04 -04:00
parent 55668a05a6
commit 5aac9cfde0
2 changed files with 5 additions and 4 deletions

View File

@ -175,7 +175,7 @@
<dependency> <dependency>
<groupId>org.reflections</groupId> <groupId>org.reflections</groupId>
<artifactId>reflections</artifactId> <artifactId>reflections</artifactId>
<version>0.9.11</version> <version>0.9.9</version>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -8,11 +8,12 @@ import org.reflections.Reflections
object FunctionTable { object FunctionTable {
private val table = mutableMapOf<String, LispFunction>() private val table = mutableMapOf<String, LispFunction>()
private val reflections = Reflections("function")
private val allBuiltIns = private val allBuiltIns = with(Reflections("function.builtin")) {
reflections.getTypesAnnotatedWith(FunctionNames::class.java) getTypesAnnotatedWith(FunctionNames::class.java)
.filterIsInstance<Class<out LispFunction>>() .filterIsInstance<Class<out LispFunction>>()
.toSet() .toSet()
}
init { init {
initializeFunctionTable(allBuiltIns) initializeFunctionTable(allBuiltIns)