Skip to content

Some questions #16

Answered by broneill
satsen asked this question in Q&A
Apr 24, 2023 · 12 comments · 23 replies
Discussion options

You must be logged in to vote

The decompiler is confused by the extra local variables that get created. It's expecting a certain pattern of stack pushes in order to re-create an inline lambda definition. As I indicated earlier, without direct stack manipulation support, extra local variables can be created.

If you take the decompiled code generated by Fernflower and manually move some code around you get this:

        Label var3 = new Label();
        var3.maxWidthProperty().bind(Bindings.createDoubleBinding(var3::lambda$main$0, new Observable[]{var3.maxHeightProperty()}));

Then change Observable[] to varargs syntax:

        Label var3 = new Label();
        var3.maxWidthProperty().bind(Bindings.createDoubleBinding(var3

Replies: 12 comments 23 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@satsen
Comment options

Comment options

You must be logged in to vote
14 replies
@broneill
Comment options

@satsen
Comment options

@broneill
Comment options

@satsen
Comment options

@broneill
Comment options

Comment options

You must be logged in to vote
8 replies
@satsen
Comment options

@satsen
Comment options

@satsen
Comment options

@broneill
Comment options

Answer selected by satsen
@satsen
Comment options

@broneill
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #14 on April 28, 2023 16:27.