Files
rea/tests/fixtures/android/static-initializers/MixedInitialization.smali
efbc25fbea fix(android): preserve executable static initializer evidence (#1876)
Return the exact static initializer disassembly before Java projection can
lose field assignments. Retain byte limits and representation markers, and
verify fully folded and mixed initialization through the real CLI/MCP lane.

Closes #1846

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
Co-authored-by: Kaoru0822 <208281322+kaoru0822-kitauji@users.noreply.github.com>
2026-10-11 23:40:42 +08:00

22 lines
620 B
Smali

.class public Lfixture/MixedInitialization;
.super Ljava/lang/Object;
.field public static final LABEL:Ljava/lang/String;
.field public static COUNT:I
.method static constructor <clinit>()V
.registers 1
const-string v0, "field-value"
sput-object v0, Lfixture/MixedInitialization;->LABEL:Ljava/lang/String;
invoke-static {}, Lfixture/MixedInitialization;->touch()V
return-void
.end method
.method public static touch()V
.registers 1
sget v0, Lfixture/MixedInitialization;->COUNT:I
add-int/lit8 v0, v0, 0x1
sput v0, Lfixture/MixedInitialization;->COUNT:I
return-void
.end method