Rust runtime: java.nio.file, File and zip in crate::jrt, so fernflower's translated tests can run
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 43/100
Hướng nghiên cứu
Start with crate::jrt and the translated DecompilerTestFixture.setUp tests to see which file-system calls block the 170 tests. The issue names std::fs and std::path as likely mappings and identifies jar tests as needing zip support. Treat this as infrastructure groundwork: the decompiler core remains stubbed in #202, so this work alone will not make those tests pass.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
fernflower's tests now translate to Rust (#[test] runners; 217 tests from helper and manual), and the helper tests compile and run.
170 of the other tests stop in DecompilerTestFixture.setUp on the first file-system call. In crate::jrt, Files, Path, File, ZipFile, ZipEntry, ZipOutputStream, FileOutputStream, PrintStream and Manifest are opaque stand-ins without methods. The decompiler's own I/O, in ConsoleDecompiler and InterpreterUtil.copyFile/getBytes, is blocked by the same gap.
What the tests need first, roughly:
Files.createTempDirectory,createDirectories,isRegularFile,readString,walk/list,delete;Path.resolve/toFile/getFileName, andFileexists/isDirectory/listFiles/getName/getAbsolutePath;- reading a class file's bytes;
ZipFile/JarFilefor the jar tests.
Most of this maps directly onto std::fs and std::path; zip needs a crate or a small reader.
This is necessary but not enough. Behind the fixture, the decompiler's core (ClassWriter.classToJava, ClassesProcessor.loadClasses) is still stubbed for struct-level reasons; those are listed in #202.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Java
- Star
- 1
- Fork
- 1
- Merge trung bình
- 48 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeLaser/maddi
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Javadoc warnings are the only noise on an otherwise clean CI runCó thể làm lại được @jayeshamundkar06-bit đã nhận 27 ngày trước và không có pull request nào đang mở. Đang mởbuild/ci good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của CodeLaser/maddi
Issue tương tự
-
area:cpan-port area:performance bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#2230 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
federicoiosue/Omni-Notes#1044 ·
-
Industrial Center Text TypoĐang mởBug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Terraform releases proxy leaves a temp folder behind on every cache refreshCó thể đã có người làm @dhananjay6561 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
terrakube-io/terrakube#4069 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày