Remove hardcoded reference to SymbolIndexer in asm

This commit is contained in:
Alexander Nozik 2024-12-24 12:51:15 +03:00
parent b9f413b5ce
commit b4b8f30b2a
2 changed files with 2 additions and 4 deletions

View File

@ -372,12 +372,12 @@ internal sealed class PrimitiveAsmBuilder<T : Number, out E : Expression<T>>(
/**
* ASM type for [java.lang.Number].
*/
val NUMBER_TYPE: Type = getObjectType("java/lang/Number")
val NUMBER_TYPE: Type = getType(Number::class.java)
/**
* ASM type for [SymbolIndexer].
*/
val SYMBOL_INDEXER_TYPE: Type = getObjectType("space/kscience/kmath/expressions/SymbolIndexer")
val SYMBOL_INDEXER_TYPE: Type = getType(SymbolIndexer::class.java)
}
}

View File

@ -14,8 +14,6 @@ import kotlin.contracts.InvocationKind
import kotlin.contracts.contract
import kotlin.jvm.JvmInline
//DO NOT MOVE THIS CLASS if you do not want ASM module to break
/**
* An environment to easy transform indexed variables to symbols and back.
* TODO requires multi-receivers to be beautiful