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 issues](/flash/images/issue_list.png)
#2133 ffdec.sh script is broken on some Java distributions
Author:
rayyaw
![user user](/flash/images/user.png)
Date created:
Type: bug
Visibility: Everybody
Assigned to:
Labels: ffdec.sh
State: closed ![Help](/flash/images/help.png)
![Help](/flash/images/help.png)
> What steps will reproduce the problem?
- Run ffdec on any GitHub Actions runner with a recompile or (possibly) a help command
- You can find our workflow here: https://github.com/rayyaw/flash-patcher/blob/87d9b55a14fce1acdb2b9affe394d4fefbd5cfa2/.git
hub/workflows/integrationtest.yml
- ...and also here: https://github.com/rayyaw/flash-patcher/blob/878de0083a20b629c60a4cee3c897a7a31b64ab4/.git
hub/common-setup.sh
- This also seems to affect some installed Java distributions. I am running on Debian 12
and using the java11 that ships with Debian 11 (as Debian 12 no longer ships Java11)
> What is the expected output? What do you see instead?
The program should run with no issue, we have confirmed that the exact command is OK on
other systems. Instead, it shows the error below.
> What version of the product are you using? Is it "nightly build"? Which operating system
do you have?
version 20.0.0 .deb file seems to be the only version suffering from this issue, running
the Flatpak distribution and building from source both seem to work
> Please provide any additional information below. If the problem is related to a SWF
file, attach it here, otherwise we can't help you.
I have included ffdec.sh. The issue happens with these checks: if [ "$JVER1" -gt
$REQ_JVER1 ]; then
Here is the exact error message in the GitHub Actions workflow. It seems it is expecting
an integer but receives a long string instead.
/usr/bin/ffdec: line 43: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
/usr/bin/ffdec: line 45: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
/usr/bin/ffdec: line 49: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
/usr/bin/ffdec: line 51: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
/usr/bin/ffdec: line 55: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
/usr/bin/ffdec: line 57: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
/usr/bin/ffdec: line 61: [: java version "17.0.9" 2023-10-17 OpenJDK Runtime Environment
Temurin-17.0.9+9 (build 17.0.9+9) OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build
17.0.9+9, mixed mode, sharing): integer expression expected
![Download](/flash/images/disk.png)
sorry if this was unclear, we only tested this on version 20.0.0 stable, which is the only
place we have confirmed this issue is occurring.
This error does not seem to affect program output correctness, although we are still
verifying this.
This should be fixed in nightly 2723.
State: new→upgraded
We have verified the fix works correctly, thanks! Feel free to close the issue.
State: upgraded→closed