1 .class public LMoveExceptionOnEntry; 2 3 .super Ljava/lang/Object; 4 5 # Test that we cannot have a catch-handler with move-exception at the beginning of a method. 6 7 .method public static moveExceptionOnEntry(I)I 8 .registers 4 9 :Label1 10 move-exception v2 11 const v1, 100 12 move v0, p0 13 add-int/lit8 p0, p0, 1 14 15 :Label2 16 invoke-static {v0}, LMoveExceptionOnEntry;->foo(I)V 17 18 :Label3 19 return v1 20 21 .catchall {:Label2 .. :Label3} :Label1 22 .end method 23 24 .method public static foo(I)I 25 .registers 4 26 :Label1 27 return-void 28 29 .end method 30 31