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:
parent
55668a05a6
commit
5aac9cfde0
2
pom.xml
2
pom.xml
|
@ -175,7 +175,7 @@
|
|||
<dependency>
|
||||
<groupId>org.reflections</groupId>
|
||||
<artifactId>reflections</artifactId>
|
||||
<version>0.9.11</version>
|
||||
<version>0.9.9</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -8,11 +8,12 @@ import org.reflections.Reflections
|
|||
object FunctionTable {
|
||||
|
||||
private val table = mutableMapOf<String, LispFunction>()
|
||||
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<Class<out LispFunction>>()
|
||||
.toSet()
|
||||
}
|
||||
|
||||
init {
|
||||
initializeFunctionTable(allBuiltIns)
|
||||
|
|
Loading…
Reference in New Issue