Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<init>(..) is not found in x - error in "edit with assembler" #407

Closed
milahu opened this issue Oct 4, 2021 · 1 comment
Closed

<init>(..) is not found in x - error in "edit with assembler" #407

milahu opened this issue Oct 4, 2021 · 1 comment
Labels

Comments

@milahu
Copy link

milahu commented Oct 4, 2021

source: MyJDownloaderConnectThread.java
the program jdownloader is half closed-source,
and the published code is different than the decompiled code ...

jarfile: Core.jar, downloaded by jdownloader via auto-update

what i want

         private DeviceConnectionHelper(MyJDownloaderConnectThread thread, int port, String host) {
             this.requested = new AtomicInteger(0);
+            System.out.println("host = " + host);
             // ...
             this.host = host;

edit with assembler

 DEFINE PRIVATE <init>(Lorg/jdownloader/api/myjdownloader/MyJDownloaderConnectThread; thread, I port, Ljava/lang/String; host)V
 A:
 LINE A 137
 ALOAD this
 INVOKESPECIAL java/lang/Object.<init>()V
+EXPR System.out.println("host = " + host);
 B:
 LINE B 106
 ALOAD this
 NEW java/util/concurrent/atomic/AtomicInteger
 // ...
 G:
 LINE G 139
 ALOAD this
 ALOAD host
 PUTFIELD org/jdownloader/api/myjdownloader/MyJDownloaderConnectThread$DeviceConnectionHelper.host 
 Ljava/lang/String;

error in the edit with assembler dialog

<init>(..) is not found in org.jdownloader.api.myjdownloader.MyJDownloaderCannectThread$DeviceConnectionHelper

edit: same error in public methods

@milahu milahu changed the title edit fails on private methods: <init>(..) is not found in x <init>(..) is not found in x - error in "edit with assembler" Oct 4, 2021
@Col-E Col-E added the bug label Oct 4, 2021
@Col-E
Copy link
Owner

Col-E commented Oct 4, 2021

Fixed in 1bb163f, will push up later after work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants