JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#1379 postincrement in parameter list confuses JPEXS
Author: user svdb
Date created:
Type: bug
Visibility: Everybody
Assigned to:
State: closed Help

> What version of the product are you using? Is it "nightly build"? Which operating system do you have? 10.0.0 release, Linux The following function public function test3(i: int): void { fun(i++); } compiles to the following bytecode getlocal_0 getlocal 1 inclocal_i 1 callpropvoid Qname(PackageNamespace(""),"fun") 1 returnvoid This is decompiled by JPEXS to: public function test3(param1:int) : void { param1++; this.fun(param1); } Note how the postincrement is incorrectly turned into a preincrement. Also, the following function public function test1(): void { var i:int = 123; fun(i++); } compiles to the following bytecode pushint 123 setlocal 1 getlocal_0 getlocal 1 inclocal_i 1 callpropvoid Qname(PackageNamespace(""),"fun") 1 kill 1 returnvoid This is decompiled by JPEXS to: public function test1() : void { _loc1_++; this.fun(123); } A variable _loc1_ is introduced, but it is not declared anywhere. Attached is the source code of the test cases above, with another variant included. Also attached is a SWF file compiled from this source code.
Downloadtest.as (484 B)Downloadtest.swf (365 B)
admin
I am sorry for letting you wait so much without an answer and I don't think it is now (after flash shutdown) even relevant, but: I think this is fixed in latest nightly build - the missing register assignments too.
State: new→upgraded
admin
State: upgraded→closed