diff options
| author | Fuwn <[email protected]> | 2026-02-13 02:05:49 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-13 02:05:49 -0800 |
| commit | 9817c9b1647faaa1ffe4af5a7620a8602651f438 (patch) | |
| tree | ff22dd2e017565aadc146062f0c7064e74035df2 /NET/worlds/scape/Restorer.java | |
| parent | fix: Decompilation artifact repairs for Java 11 compilation (diff) | |
| download | worldsplayer-9817c9b1647faaa1ffe4af5a7620a8602651f438.tar.xz worldsplayer-9817c9b1647faaa1ffe4af5a7620a8602651f438.zip | |
feat: Reimplement core I/O and system information native methods with pure Java
- FastDataInput: DataInputStream wrapper replacing native binary I/O
- DNSLookup: InetAddress.getAllByName() replacing native gethostbyname()
- Restorer: Array.newInstance() replacing native makeArray()
- SystemInfo: Runtime/File APIs for disk, memory, CPU, platform info
- StatMemNode: Runtime APIs for memory status reporting
Diffstat (limited to 'NET/worlds/scape/Restorer.java')
| -rw-r--r-- | NET/worlds/scape/Restorer.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/NET/worlds/scape/Restorer.java b/NET/worlds/scape/Restorer.java index fa1e774..4659518 100644 --- a/NET/worlds/scape/Restorer.java +++ b/NET/worlds/scape/Restorer.java @@ -219,7 +219,9 @@ public class Restorer { return c; } - private native Object makeArray(Class<?> var1, int var2); + private Object makeArray(Class<?> var1, int var2) { + return java.lang.reflect.Array.newInstance(var1, var2); + } public Persister[] restoreArray() throws IOException, TooNewException { Class<?> arrayclass = null; |