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>
|
<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>
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue