Ignoring not static final fields.

Added tests with class object of trait and val inside object.
This commit is contained in:
Evgeny Gerashchenko
2014-07-07 17:38:08 +04:00
parent aa9384a207
commit 42cba1cc3c
10 changed files with 69 additions and 1 deletions
@@ -190,7 +190,8 @@ public class IncrementalCacheImpl(val baseDir: File): IncrementalCache {
ClassReader(bytes).accept(object : ClassVisitor(Opcodes.ASM5) {
override fun visitField(access: Int, name: String, desc: String, signature: String?, value: Any?): FieldVisitor? {
if (value != null) {
val staticFinal = Opcodes.ACC_STATIC or Opcodes.ACC_FINAL
if (value != null && access and staticFinal == staticFinal) {
result[name] = value
}
return null