Skip to content

Commit

Permalink
ArrayStoreException
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Apr 1, 2024
1 parent cfc1acb commit f1d44b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import org.tabooproject.reflex.reflection.InstantAnnotation
import org.tabooproject.reflex.reflection.InstantClassConstructor
import org.tabooproject.reflex.reflection.InstantClassField
import org.tabooproject.reflex.reflection.InstantClassMethod
import java.util.*

/**
* @author 坏黑
Expand All @@ -17,8 +16,11 @@ object ClassAnalyser {
fun analyse(clazz: Class<*>): ClassStructure {
return try {
analyseByReflection(clazz)
} catch (ex: NoClassDefFoundError) {
analyseByASM(clazz)
} catch (ex: Throwable) {
when (ex) {
is NoClassDefFoundError, is ArrayStoreException -> analyseByASM(clazz)
else -> throw ex
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group=org.tabooproject.reflex
version=1.0.22
version=1.0.23
kotlin.incremental=true
kotlin.incremental.java=true
kotlin.caching.enabled=true
Expand Down

0 comments on commit f1d44b2

Please sign in to comment.