Partial Recompilation
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 15/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- java
調査の方向性
ファイル、テスト、エントリポイントは指定されていません。まず、既存の逆コンパイル、逆コンパイル済みコードの表示、構文スタイル設定、コンテキスト分析の各パスを追跡し、その後、右クリックの「メソッドを個別に編集」フロー案と、エイリアス、モック、コメント、メソッド本体の編集の扱いを評価します。
索引モデルが issue の本文から書いたものです。
説明
<insert first idea draft here>
Potential Problems with this approach:
- Decompiler API Requirement & Challenges:
- To enable this feature, the decompiler must have an API for obtaining an Abstract Syntax Tree (AST) from input code.
- Not all decompilers readily support obtaining the AST, potentially necessitating forking of the decompiler codebase.
- Implementing this feature across different decompilers would require creating abstractions, which can be complex.
- Alignment Issue:
- Even if partial recompilation is achieved, it works effectively only for the initial pass.
- Editing decompiled code can lead to misalignment between the AST and the edited code.
- Generic Code Handling:
- A generic code handling system is necessary to support editable code, addressing the issue of code alignment after user edits.
- Obfuscation Challenge:
- The challenge lies in handling obfuscated code, as most Java code parsers expect valid Java source code.
- Some parsers, like JavaParser (2x/3x), hard fail in cases involving obfuscation, whereas OpenRewrite (4x) can provide partial AST from obfuscated code in certain cases.
- Refactoring Requirements:
- Implementing this feature would necessitate significant refactoring in terms of managing decompilation, displaying decompiled code, handling syntax styling, and context analysis.
- Edge Cases and Abuse Considerations:
- The feature is subject to potential edge cases, particularly concerning obfuscation.
- Careful consideration is needed to prevent misuse and abuse of this approach to display data.
The initial feature request would involve significant refactoring in four key areas:
- Decompilation Management: Restructuring how decompilation is handled.
- Display of Decompiled Code: Adapting code display methods.
- Syntax Styling: Updating the approach to syntax styling.
- Context Analysis: Enhancing the system's context analysis capabilities.
A new idea is being proposed:
Action: Right-click on a method to access the "edit method separately" option.
Functionality: Opens a new window/tab with the following features:
- Handling of Inner Classes, Fields, and Methods:
- Obfuscated fields are replaced with
fieldXaliases, and these aliases cannot be changed. - Inner classes are mocked, and if they have illegal names, aliases are provided.
- Other methods, including lambdas, are mocked.
- If they have illegal names, aliases are used.
- Comments are included for reference.
- Obfuscated fields are replaced with
- Method Body Editing:
- The method itself is presented in a text field, allowing users to edit and save the method body.
- Additional Features (Nice to Have):
- Method and Parameter Renaming: Consider allowing users to rename method names and parameter names.
- Changing Types: Explore the possibility of changing data types, potentially using a miniature JASM field.
- 主要言語
- Java
- スター
- 7.5k
- フォーク
- 549
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Col-E/Recaf のほかの issue
-
Copy/paste broken on Linux: ClassCastException (HeapByteBuffer → byte[]) in ClipboardActions.pasteオープン3rd party problem bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
似ている issue
-
Bug feat:Syntax
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
ignatov/intellij-erlang#1342 ·
メンテナーはふだん 1 日以内に返信
-
Flaky EnrollmentCoordinatorTest.theNewSettingsShouldNotInheritTheFormerOnesBackoff on Windows対応中かも @NassimBtk が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MetricsHub/metricshub-community#1636 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] no hint/error message for max picture size対応中かも @flahamue が今日担当しました。 オープンType: Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
it-at-m/raumreservierung#439 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
citrusframework/citrus#2044 ·
メンテナーはふだん 1 日以内に返信