JPEXS Free Flash Decompiler Issue Tracker

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

: The issue tracker is now writable again and logged users can download files too. But note that our support is very LIMITED.

List of issuesList of issues

#33 calling constructor in static const initializer
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: AS3DecompilationGoogle Code
State: closed Help

example package { import flash.display.MovieClip; public class Main extends MovieClip { public static const instance:Main=new Main(); public function Main() { } } } turns into package { import flash.display.MovieClip; public class Main extends MovieClip { public function Main() { super(); return; } public static const instance:Main = new this(); } } - new this(); leads to error in flash builder -1042: The this keyword can not be used in static methods. It can only be used in instance methods, function closures, and global code.
admin
Hi, this bug was already fixed in version 1.4.0
user
State: →closed
Title: calling constructor in static const initializer→calling constructor in static const initializer
Type: →bug
Visibility: →Everybody