Archive incari-client (client, 26.3, clean)

This commit is contained in:
2026-11-28 00:54:38 -06:00
parent 7a6174687f
commit 12838e838c
2383 changed files with 280266 additions and 0 deletions
+945
View File
@@ -0,0 +1,945 @@
# Port backlog: Minecraft 26.3 under TeaVM
Generated by `./incari survey`. Don't edit it by hand: change `tools/survey/rules.txt` and rerun.
TeaVM 0.15.0 (WebAssembly GC) reaches 41,519 classes when every client class is a root (not just what `net.minecraft.client.main.Main` reaches). 6,258 call sites use 2,306 APIs the browser build can't provide as-is, grouped below into 48 work items.
## Summary
| Category | Meaning | Work items | APIs | Call sites |
| --- | --- | ---: | ---: | ---: |
| Stub | A no-op or trivial implementation is enough. | 6 | 141 | 411 |
| Shim | Needs a real implementation, over a browser API or simpler Java. | 8 | 417 | 1737 |
| Rewrite | The calling code has to change: a patch or a replacement class. | 16 | 723 | 1883 |
| Delete | The feature is stripped from the browser build. | 18 | 1145 | 2227 |
| **Total** | | 48 | 2306 | 6258 |
By kind of finding:
| Kind | Call sites | What it means |
| --- | ---: | --- |
| missing class | 2664 | TeaVM can't find the class: not in its class library, or in a library left off the classpath |
| missing method | 340 | The class exists in TeaVM's class library but lacks this method |
| unsupported on target | 1 | TeaVM knows it but can't support it on WebAssembly GC |
| missing supertype | 1 | A class extends or implements something that isn't on the classpath |
| JDK class TeaVM lacks | 2832 | A JDK class that TeaVM's class library doesn't have; the game or a library uses it here |
| reflection | 420 | Reflective lookup that TeaVM's closed-world compile can't see |
## Stub
A no-op or trivial implementation is enough. 6 work items, 141 APIs, 411 call sites.
| Work item | APIs | Call sites | Where the calls are |
| --- | ---: | ---: | --- |
| sun.misc.Unsafe in libraries: stub it as unavailable so Netty, Guava and JOML take their safe fallbacks | 47 | 224 | `joml` (107), `netty-common` (100), `guava` (17) |
| Small JDK methods and classes TeaVM's class library lacks: add them to the class library | 57 | 124 | `net.minecraft.util` (21), `guava` (10), `com.mojang.blaze3d.platform` (9), `net.minecraft.nbt` (9), +33 more |
| JVM memory, GC and thread stats (debug overlay, crash reports, watchdog): report browser numbers or zeros | 19 | 28 | `net.minecraft` (10), `net.minecraft.client.gui.components.debug` (10), `net.minecraft.util` (4), `net.minecraft.client` (2), +2 more |
| Process control (exit, shutdown hooks, environment, native libraries): no-ops in a browser tab | 4 | 16 | `net.minecraft.client.main` (4), `net.minecraft.client` (3), `com.mojang.blaze3d.platform` (2), `netty-buffer` (2), +5 more |
| Caller lookup (StackWalker, modules): return nothing | 9 | 11 | `net.minecraft.util.profiling` (8), `logging` (3) |
| Thread details TeaVM lacks (ids, state, onSpinWait): trivial answers under coroutines | 5 | 8 | `net.minecraft.client` (2), `net.minecraft.client.renderer.chunk` (2), `netty-common` (2), `com.mojang.blaze3d.platform` (1), +1 more |
### sun.misc.Unsafe in libraries: stub it as unavailable so Netty, Guava and JOML take their safe fallbacks
| API | Kind | Call sites |
| --- | --- | ---: |
| `sun.misc.Unsafe#objectFieldOffset` | JDK class TeaVM lacks | 35 |
| `jdk.internal.misc.Unsafe#objectFieldOffset` | JDK class TeaVM lacks | 27 |
| `sun.misc.Unsafe#getLong` | JDK class TeaVM lacks | 20 |
| `sun.misc.Unsafe` | JDK class TeaVM lacks | 13 |
| `sun.misc.Unsafe#putLong` | JDK class TeaVM lacks | 10 |
| `jdk.internal.misc.Unsafe#getLong` | JDK class TeaVM lacks | 7 |
| `jdk.internal.misc.Unsafe#putLongUnaligned` | JDK class TeaVM lacks | 7 |
| `jdk.internal.misc.Unsafe#getLongUnaligned` | JDK class TeaVM lacks | 6 |
| `sun.misc.Unsafe#arrayBaseOffset` | JDK class TeaVM lacks | 6 |
| `sun.misc.Unsafe#putOrderedLong` | JDK class TeaVM lacks | 6 |
| `sun.misc.Unsafe#arrayIndexScale` | JDK class TeaVM lacks | 5 |
| `sun.misc.Unsafe#compareAndSwapLong` | JDK class TeaVM lacks | 5 |
| ...and 35 more | | 77 |
### Small JDK methods and classes TeaVM's class library lacks: add them to the class library
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.HexFormat#toHexDigits` | JDK class TeaVM lacks | 12 |
| `java.util.HexFormat#of` | JDK class TeaVM lacks | 11 |
| `java.util.HexFormat#withUpperCase` | JDK class TeaVM lacks | 7 |
| `java.lang.Character#toString` | missing method | 6 |
| `java.lang.Class#getGenericSuperclass` | missing method | 6 |
| `java.util.UUID#<init>` | missing method | 5 |
| `java.util.UUID#getMostSignificantBits` | missing method | 5 |
| `java.nio.ByteBuffer#slice` | missing method | 4 |
| `java.util.StringJoiner#add` | JDK class TeaVM lacks | 4 |
| `java.util.stream.StreamSupport#intStream` | missing method | 3 |
| `java.io.BufferedReader#transferTo` | missing method | 2 |
| `java.io.ObjectStreamClass` | JDK class TeaVM lacks | 2 |
| ...and 45 more | | 57 |
### JVM memory, GC and thread stats (debug overlay, crash reports, watchdog): report browser numbers or zeros
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.management.ManagementFactory#getMemoryMXBean` | JDK class TeaVM lacks | 3 |
| `java.lang.management.ManagementFactory#getRuntimeMXBean` | JDK class TeaVM lacks | 2 |
| `java.lang.management.MemoryMXBean#getHeapMemoryUsage` | JDK class TeaVM lacks | 2 |
| `java.lang.management.MemoryMXBean#getNonHeapMemoryUsage` | JDK class TeaVM lacks | 2 |
| `java.lang.management.MemoryUsage#getCommitted` | JDK class TeaVM lacks | 2 |
| `java.lang.management.MemoryUsage#getInit` | JDK class TeaVM lacks | 2 |
| `java.lang.management.MemoryUsage#getMax` | JDK class TeaVM lacks | 2 |
| `java.lang.management.MemoryUsage#getUsed` | JDK class TeaVM lacks | 2 |
| `java.lang.management.GarbageCollectorMXBean` | JDK class TeaVM lacks | 1 |
| `java.lang.management.GarbageCollectorMXBean#getCollectionCount` | JDK class TeaVM lacks | 1 |
| `java.lang.management.ManagementFactory#getGarbageCollectorMXBeans` | JDK class TeaVM lacks | 1 |
| `java.lang.management.ManagementFactory#getPlatformMBeanServer` | JDK class TeaVM lacks | 1 |
| ...and 7 more | | 7 |
### Process control (exit, shutdown hooks, environment, native libraries): no-ops in a browser tab
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.Runtime#maxMemory` | missing method | 8 |
| `java.lang.System#exit` | missing method | 6 |
| `java.lang.Runtime#addShutdownHook` | missing method | 1 |
| `java.lang.System#mapLibraryName` | missing method | 1 |
### Caller lookup (StackWalker, modules): return nothing
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.StackWalker#getInstance` | JDK class TeaVM lacks | 2 |
| `java.lang.StackWalker$Option#RETAIN_CLASS_REFERENCE` | JDK class TeaVM lacks | 2 |
| `java.lang.StackWalker#getCallerClass` | JDK class TeaVM lacks | 1 |
| `java.lang.StackWalker#walk` | JDK class TeaVM lacks | 1 |
| `java.lang.StackWalker$StackFrame` | JDK class TeaVM lacks | 1 |
| `java.lang.StackWalker$StackFrame#getDeclaringClass` | JDK class TeaVM lacks | 1 |
| `java.lang.StackWalker$StackFrame#getFileName` | JDK class TeaVM lacks | 1 |
| `java.lang.StackWalker$StackFrame#getLineNumber` | JDK class TeaVM lacks | 1 |
| `java.lang.StackWalker$StackFrame#getMethodName` | JDK class TeaVM lacks | 1 |
### Thread details TeaVM lacks (ids, state, onSpinWait): trivial answers under coroutines
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.Thread#onSpinWait` | missing method | 3 |
| `java.lang.Thread#threadId` | missing method | 2 |
| `java.lang.Thread#getState` | missing method | 1 |
| `java.lang.Thread#setContextClassLoader` | missing method | 1 |
| `java.lang.Thread#sleep` | missing method | 1 |
## Shim
Needs a real implementation, over a browser API or simpler Java. 8 work items, 417 APIs, 1737 call sites.
| Work item | APIs | Call sites | Where the calls are |
| --- | ---: | ---: | --- |
| CompletableFuture (async loading everywhere): a single-threaded implementation over TeaVM coroutines | 36 | 628 | `net.minecraft.server.level` (100), `net.minecraft.client.resources.model` (40), `net.minecraft.world.level.chunk.storage` (36), `net.minecraft.server` (31), +56 more |
| Locks, atomics and concurrent queues: single-threaded shims | 112 | 452 | `guava` (160), `netty-buffer` (65), `netty-common` (51), `net.minecraft.client.color.block` (28), +24 more |
| java.time (dates, durations, formatting): compile a java.time implementation for TeaVM | 128 | 342 | `gson` (98), `net.minecraft.world.level.storage` (29), `net.minecraft.util` (28), `authlib` (20), +35 more |
| Filesystem (java.nio.file, channels, locks, watching): an in-memory file system kept in OPFS or IndexedDB (ADR 0011) | 93 | 232 | `commons-io` (27), `netty-buffer` (24), `net.minecraft.util.filefix.virtualfilesystem` (21), `net.minecraft.util` (18), +26 more |
| Bidi text and localized dates (ICU): the browser's Intl, or a minimal shim | 26 | 33 | `net.minecraft.client.renderer.item.properties.select` (13), `net.minecraft.client.resources.language` (11), `net.minecraft.client.gui` (8), `net.minecraft.client.gui.screens` (1) |
| Executors, thread pools and futures: a coroutine scheduler, later Web Workers | 12 | 28 | `guava` (8), `netty-common` (8), `net.minecraft.util` (4), `netty-transport` (3), +4 more |
| Narrator: Web Speech API | 5 | 13 | `net.minecraft.client` (9), `net.minecraft.client.gui.screens` (4) |
| ScopedValue (Java 25): a thread-local style shim | 5 | 9 | `net.minecraft.world.level.block.state` (5), `net.minecraft.util.filefix.access` (2), `net.minecraft.util.filefix.operations` (2) |
### CompletableFuture (async loading everywhere): a single-threaded implementation over TeaVM coroutines
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.concurrent.CompletableFuture` | JDK class TeaVM lacks | 83 |
| `java.util.concurrent.CompletableFuture#supplyAsync` | JDK class TeaVM lacks | 63 |
| `java.util.concurrent.CompletableFuture#completedFuture` | JDK class TeaVM lacks | 60 |
| `java.util.concurrent.CompletableFuture#join` | JDK class TeaVM lacks | 60 |
| `java.util.concurrent.CompletableFuture#thenCompose` | JDK class TeaVM lacks | 37 |
| `java.util.concurrent.CompletableFuture#thenApply` | JDK class TeaVM lacks | 32 |
| `java.util.concurrent.CompletableFuture#thenAcceptAsync` | JDK class TeaVM lacks | 28 |
| `java.util.concurrent.CompletableFuture#complete` | JDK class TeaVM lacks | 27 |
| `java.util.concurrent.CompletableFuture#<init>` | JDK class TeaVM lacks | 24 |
| `java.util.concurrent.CompletableFuture#allOf` | JDK class TeaVM lacks | 22 |
| `java.util.concurrent.CompletableFuture#getNow` | JDK class TeaVM lacks | 21 |
| `java.util.concurrent.CompletableFuture#exceptionally` | JDK class TeaVM lacks | 16 |
| ...and 24 more | | 155 |
### Locks, atomics and concurrent queues: single-threaded shims
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.concurrent.atomic.AtomicReferenceArray#get` | JDK class TeaVM lacks | 45 |
| `java.util.concurrent.atomic.AtomicReferenceArray#length` | JDK class TeaVM lacks | 39 |
| `java.util.concurrent.atomic.AtomicReferenceArray#set` | JDK class TeaVM lacks | 26 |
| `java.util.concurrent.locks.ReentrantLock#lock` | JDK class TeaVM lacks | 16 |
| `java.util.concurrent.locks.ReentrantLock#unlock` | JDK class TeaVM lacks | 16 |
| `com.google.common.cache.LocalCache$Segment#unlock` | missing method | 13 |
| `java.util.concurrent.atomic.LongAdder` | JDK class TeaVM lacks | 11 |
| `java.util.concurrent.atomic.LongAdder#<init>` | JDK class TeaVM lacks | 11 |
| `java.util.concurrent.atomic.LongAdder#add` | JDK class TeaVM lacks | 11 |
| `com.google.common.cache.LocalCache$Segment#lock` | missing method | 10 |
| `java.util.concurrent.locks.ReentrantLock` | JDK class TeaVM lacks | 10 |
| `java.util.concurrent.locks.ReentrantLock#<init>` | JDK class TeaVM lacks | 10 |
| ...and 100 more | | 234 |
### java.time (dates, durations, formatting): compile a java.time implementation for TeaVM
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.time.Instant#now` | JDK class TeaVM lacks | 49 |
| `java.time.ZoneOffset` | JDK class TeaVM lacks | 12 |
| `java.time.format.DateTimeFormatter#format` | JDK class TeaVM lacks | 10 |
| `java.time.Duration#between` | JDK class TeaVM lacks | 9 |
| `java.time.Duration#ofMinutes` | JDK class TeaVM lacks | 9 |
| `java.time.Duration#toMillis` | JDK class TeaVM lacks | 9 |
| `java.time.LocalTime` | JDK class TeaVM lacks | 8 |
| `java.time.Instant` | JDK class TeaVM lacks | 7 |
| `java.time.MonthDay#of` | JDK class TeaVM lacks | 7 |
| `java.time.ZonedDateTime#now` | JDK class TeaVM lacks | 7 |
| `java.time.LocalDateTime` | JDK class TeaVM lacks | 6 |
| `java.time.format.DateTimeFormatterBuilder#appendValue` | JDK class TeaVM lacks | 6 |
| ...and 116 more | | 203 |
### Filesystem (java.nio.file, channels, locks, watching): an in-memory file system kept in OPFS or IndexedDB (ADR 0011)
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.io.File#toPath` | missing method | 29 |
| `java.nio.channels.FileChannel#write` | JDK class TeaVM lacks | 13 |
| `java.nio.channels.FileChannel#close` | JDK class TeaVM lacks | 12 |
| `java.nio.channels.FileChannel#open` | JDK class TeaVM lacks | 9 |
| `java.nio.file.attribute.BasicFileAttributeView` | JDK class TeaVM lacks | 9 |
| `java.nio.channels.FileChannel#read` | JDK class TeaVM lacks | 8 |
| `java.nio.channels.GatheringByteChannel#write` | JDK class TeaVM lacks | 7 |
| `java.nio.file.Files#getFileStore` | missing method | 6 |
| `java.nio.channels.ScatteringByteChannel#read` | JDK class TeaVM lacks | 5 |
| `java.nio.file.PathMatcher` | JDK class TeaVM lacks | 5 |
| `java.nio.file.PathMatcher#matches` | JDK class TeaVM lacks | 5 |
| `java.nio.channels.FileChannel#tryLock` | JDK class TeaVM lacks | 4 |
| ...and 81 more | | 120 |
### Bidi text and localized dates (ICU): the browser's Intl, or a minimal shim
| API | Kind | Call sites |
| --- | --- | ---: |
| `com.ibm.icu.text.ArabicShaping` | missing class | 2 |
| `com.ibm.icu.text.ArabicShaping#<init>` | missing class | 2 |
| `com.ibm.icu.text.ArabicShaping#shape` | missing class | 2 |
| `com.ibm.icu.text.Bidi` | missing class | 2 |
| `com.ibm.icu.text.Bidi#<init>` | missing class | 2 |
| `com.ibm.icu.text.Bidi#setReorderingMode` | missing class | 2 |
| `com.ibm.icu.util.Calendar#getInstance` | missing class | 2 |
| `com.ibm.icu.text.ArabicShapingException` | missing class | 1 |
| `com.ibm.icu.text.Bidi#countRuns` | missing class | 1 |
| `com.ibm.icu.text.Bidi#getVisualRun` | missing class | 1 |
| `com.ibm.icu.text.Bidi#writeReordered` | missing class | 1 |
| `com.ibm.icu.text.BidiRun#getLength` | missing class | 1 |
| ...and 14 more | | 14 |
### Executors, thread pools and futures: a coroutine scheduler, later Web Workers
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.concurrent.RejectedExecutionException` | JDK class TeaVM lacks | 12 |
| `java.util.concurrent.ScheduledFuture` | JDK class TeaVM lacks | 3 |
| `java.util.concurrent.AbstractExecutorService` | JDK class TeaVM lacks | 2 |
| `java.util.concurrent.Future` | JDK class TeaVM lacks | 2 |
| `net.minecraft.util.Util$2#getName` | missing method | 2 |
| `com.google.common.util.concurrent.ListenableFuture#isDone` | missing method | 1 |
| `java.util.concurrent.ExecutorService` | JDK class TeaVM lacks | 1 |
| `java.util.concurrent.ForkJoinPool` | JDK class TeaVM lacks | 1 |
| `java.util.concurrent.ForkJoinWorkerThread` | JDK class TeaVM lacks | 1 |
| `java.util.concurrent.RunnableFuture` | JDK class TeaVM lacks | 1 |
| `java.util.concurrent.ScheduledExecutorService` | JDK class TeaVM lacks | 1 |
| `java.util.concurrent.ScheduledThreadPoolExecutor` | JDK class TeaVM lacks | 1 |
### Narrator: Web Speech API
| API | Kind | Call sites |
| --- | --- | ---: |
| `com.mojang.text2speech.Narrator#active` | missing class | 4 |
| `com.mojang.text2speech.Narrator#clear` | missing class | 3 |
| `com.mojang.text2speech.Narrator#getNarrator` | missing class | 3 |
| `com.mojang.text2speech.Narrator#say` | missing class | 2 |
| `com.mojang.text2speech.Narrator#destroy` | missing class | 1 |
### ScopedValue (Java 25): a thread-local style shim
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.ScopedValue#get` | JDK class TeaVM lacks | 2 |
| `java.lang.ScopedValue#newInstance` | JDK class TeaVM lacks | 2 |
| `java.lang.ScopedValue#where` | JDK class TeaVM lacks | 2 |
| `java.lang.ScopedValue$Carrier#run` | JDK class TeaVM lacks | 2 |
| `java.lang.ScopedValue#isBound` | JDK class TeaVM lacks | 1 |
## Rewrite
The calling code has to change: a patch or a replacement class. 16 work items, 723 APIs, 1883 call sites.
| Work item | APIs | Call sites | Where the calls are |
| --- | ---: | ---: | --- |
| OpenGL backend: replace with a WebGL2 GpuDevice backend | 202 | 352 | `com.mojang.renderpearl.backend.opengl` (351), `com.mojang.blaze3d.platform` (1) |
| Library reflection: steer the library off the reflective path, or declare it for TeaVM | 33 | 286 | `netty-common` (136), `joml` (67), `guava` (36), `netty-transport` (24), +3 more |
| Off-heap memory (MemoryUtil, MemoryStack, pointers): rewrite over ArrayBuffer | 43 | 231 | `com.mojang.blaze3d.platform` (72), `com.mojang.renderpearl.frontend.shaders` (46), `com.mojang.blaze3d.vertex` (37), `net.minecraft.client.gui.font.providers` (15), +13 more |
| Window, input, clipboard and events (SDL3): canvas, Pointer Lock and DOM events | 129 | 209 | `com.mojang.blaze3d.platform` (183), `com.mojang.blaze3d.systems` (15), `net.minecraft.client` (4), `com.mojang.blaze3d` (3), +2 more |
| Socket addresses, proxies and HTTP: server addresses become WebSocket URLs, HTTP becomes fetch | 82 | 198 | `netty-transport` (73), `netty-common` (38), `guava` (21), `net.minecraft.client.main` (13), +14 more |
| VarHandle and MethodHandle (Netty, Guava atomics): the libraries probe for them and fall back when they throw; patch any game caller | 21 | 100 | `netty-common` (63), `netty-buffer` (24), `guava` (11), `com.mojang.blaze3d.platform` (2) |
| Netty's NIO transport (selectors, socket channels): in the browser, connections are WebSockets on local event loops | 43 | 91 | `netty-transport` (91) |
| Logging backend discovery (ServiceLoader, class loading): bind the console logger directly | 40 | 88 | `log4j-api` (74), `slf4j-api` (12), `logging` (2) |
| Shader toolchain: GLSL to SPIR-V (shaderc) and back (SPIRV-Cross) runs natively; move it to build time | 46 | 76 | `com.mojang.renderpearl.frontend.shaders` (66), `com.mojang.renderpearl.api.pipeline` (10) |
| Gson reflective type adapters: register explicit adapters, or keep Gson on JsonElement trees | 24 | 74 | `gson` (74) |
| Audio (OpenAL): Web Audio | 49 | 70 | `com.mojang.blaze3d.audio` (67), `net.minecraft.client.sounds` (2), `com.mojang.blaze3d.platform` (1) |
| Netty channels and pipeline: WebSocket transport under Connection | 31 | 43 | `netty-common` (19), `netty-buffer` (17), `netty-transport` (7) |
| TrueType fonts (FreeType): pre-baked glyph atlases, Canvas2D for pack fonts | 28 | 38 | `com.mojang.blaze3d.font` (14), `com.mojang.blaze3d.platform` (13), `net.minecraft.client.gui.font.providers` (11) |
| Game code using reflection: replace with direct references | 11 | 14 | `com.mojang.blaze3d.platform` (8), `net.minecraft.client.multiplayer.resolver` (2), `net.minecraft.world.entity.boss.enderdragon.phases` (2), `net.minecraft.network.syncher` (1), +1 more |
| Image decode and encode (STB): createImageBitmap or a pure-Java codec | 10 | 12 | `com.mojang.blaze3d.platform` (12) |
| Netty's own thread class (a ThreadGroup constructor TeaVM lacks): event loops get their threads from the game's factory | 1 | 1 | `netty-common` (1) |
### OpenGL backend: replace with a WebGL2 GpuDevice backend
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.PointerBuffer#get` | missing class | 10 |
| `org.lwjgl.system.MemoryStack#close` | missing class | 10 |
| `org.lwjgl.system.MemoryUtil#memAddress` | missing class | 8 |
| `org.lwjgl.util.spvc.SpvcReflectedResource#id` | missing class | 7 |
| `org.lwjgl.opengl.GL33C#glBindTexture` | missing class | 6 |
| `org.lwjgl.opengl.GL33C#glEnable` | missing class | 6 |
| `org.lwjgl.opengl.GL33C#glSamplerParameteri` | missing class | 6 |
| `org.lwjgl.system.MemoryUtil#memCopy` | missing class | 6 |
| `org.lwjgl.util.spvc.Spvc#spvc_compiler_options_set_bool` | missing class | 6 |
| `org.lwjgl.util.spvc.Spvc#spvc_compiler_set_name` | missing class | 6 |
| `org.lwjgl.sdl.SDLVideo#SDL_GL_SetAttribute` | missing class | 5 |
| `org.lwjgl.system.MemoryStack#callocPointer` | missing class | 5 |
| ...and 190 more | | 271 |
### Library reflection: steer the library off the reflective path, or declare it for TeaVM
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.Class#getDeclaredField` | reflection | 67 |
| `java.lang.Class#forName` | reflection | 37 |
| `java.lang.Class#getDeclaredMethod` | reflection | 32 |
| `java.lang.invoke.MethodHandles$Lookup#findVirtual` | reflection | 25 |
| `java.lang.Class#getMethod` | reflection | 14 |
| `java.lang.invoke.MethodHandles$Lookup#findStatic` | reflection | 14 |
| `java.lang.invoke.MethodHandles#lookup` | reflection | 10 |
| `java.lang.reflect.Method#invoke` | reflection | 10 |
| `java.lang.invoke.MethodHandles#publicLookup` | reflection | 8 |
| `java.lang.reflect.Field#get` | reflection | 7 |
| `java.lang.ClassLoader#getSystemClassLoader` | reflection | 6 |
| `java.lang.reflect.Constructor#newInstance` | reflection | 6 |
| ...and 21 more | | 50 |
### Off-heap memory (MemoryUtil, MemoryStack, pointers): rewrite over ArrayBuffer
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.system.MemoryStack#close` | missing class | 50 |
| `org.lwjgl.system.MemoryStack#stackPush` | missing class | 25 |
| `org.lwjgl.system.MemoryUtil#memFree` | missing class | 15 |
| `org.lwjgl.PointerBuffer#get` | missing class | 14 |
| `org.lwjgl.system.MemoryUtil#memPutFloat` | missing class | 12 |
| `org.lwjgl.system.MemoryStack#mallocInt` | missing class | 11 |
| `org.lwjgl.system.MemoryStack#callocPointer` | missing class | 8 |
| `org.lwjgl.system.MemoryUtil#memCopy` | missing class | 8 |
| `org.lwjgl.system.MemoryUtil#memUTF8` | missing class | 8 |
| `org.lwjgl.system.MemoryUtil#memAlloc` | missing class | 7 |
| `org.lwjgl.system.MemoryUtil#memPutByte` | missing class | 7 |
| `org.lwjgl.system.MemoryUtil#memPutShort` | missing class | 5 |
| ...and 31 more | | 61 |
### Window, input, clipboard and events (SDL3): canvas, Pointer Lock and DOM events
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.sdl.SDLError#SDL_GetError` | missing class | 25 |
| `org.lwjgl.sdl.SDLHints#SDL_SetHint` | missing class | 9 |
| `org.lwjgl.sdl.SDLInit#SDL_SetAppMetadataProperty` | missing class | 7 |
| `org.lwjgl.sdl.SDLVideo#SDL_SetWindowFullscreen` | missing class | 4 |
| `org.lwjgl.sdl.SDL_Event#type` | missing class | 4 |
| `org.lwjgl.sdl.SDLKeyboard#SDL_GetModState` | missing class | 3 |
| `org.lwjgl.sdl.SDL_DisplayEvent#displayID` | missing class | 3 |
| `org.lwjgl.sdl.SDL_Event#display` | missing class | 3 |
| `org.lwjgl.sdl.SDL_Event#window` | missing class | 3 |
| `org.lwjgl.sdl.SDL_MouseWheelEvent#x` | missing class | 3 |
| `org.lwjgl.sdl.SDL_Rect#malloc` | missing class | 3 |
| `org.lwjgl.sdl.SDL_WindowEvent#data1` | missing class | 3 |
| ...and 117 more | | 139 |
### Socket addresses, proxies and HTTP: server addresses become WebSocket URLs, HTTP becomes fetch
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.net.SocketException` | JDK class TeaVM lacks | 22 |
| `java.net.InetSocketAddress` | JDK class TeaVM lacks | 17 |
| `java.net.InetAddress` | JDK class TeaVM lacks | 8 |
| `java.net.InetSocketAddress#getAddress` | JDK class TeaVM lacks | 7 |
| `java.net.SocketAddress` | JDK class TeaVM lacks | 7 |
| `java.net.InetAddress#getHostAddress` | JDK class TeaVM lacks | 6 |
| `java.net.InetSocketAddress#<init>` | JDK class TeaVM lacks | 6 |
| `java.net.InetSocketAddress#getPort` | JDK class TeaVM lacks | 6 |
| `java.net.NetworkInterface` | JDK class TeaVM lacks | 6 |
| `java.net.ConnectException` | JDK class TeaVM lacks | 5 |
| `java.net.InetAddress#getByName` | JDK class TeaVM lacks | 5 |
| `java.net.UnknownHostException` | JDK class TeaVM lacks | 5 |
| ...and 70 more | | 98 |
### VarHandle and MethodHandle (Netty, Guava atomics): the libraries probe for them and fall back when they throw; patch any game caller
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.invoke.MethodHandle#invokeExact` | missing method | 22 |
| `java.lang.invoke.VarHandle#get` | JDK class TeaVM lacks | 14 |
| `java.lang.invoke.VarHandle#set` | JDK class TeaVM lacks | 13 |
| `java.lang.invoke.MethodType#methodType` | missing method | 10 |
| `java.lang.invoke.MethodHandles#lookup` | missing method | 8 |
| `java.lang.invoke.MethodHandle#invoke` | missing method | 4 |
| `java.lang.invoke.MethodHandles$Lookup#findStatic` | missing method | 4 |
| `java.lang.invoke.VarHandle#compareAndSet` | JDK class TeaVM lacks | 4 |
| `java.lang.invoke.VarHandle` | JDK class TeaVM lacks | 3 |
| `java.lang.invoke.VarHandle#setRelease` | JDK class TeaVM lacks | 3 |
| `java.lang.invoke.MethodHandles$Lookup#findVirtual` | missing method | 2 |
| `java.lang.invoke.VarHandle#getAndAdd` | JDK class TeaVM lacks | 2 |
| ...and 9 more | | 11 |
### Netty's NIO transport (selectors, socket channels): in the browser, connections are WebSockets on local event loops
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.nio.channels.SelectionKey` | JDK class TeaVM lacks | 8 |
| `java.nio.channels.Selector#selectNow` | JDK class TeaVM lacks | 6 |
| `java.nio.channels.SelectionKey#interestOps` | JDK class TeaVM lacks | 5 |
| `java.nio.channels.CancelledKeyException` | JDK class TeaVM lacks | 4 |
| `java.nio.channels.Selector#wakeup` | JDK class TeaVM lacks | 4 |
| `java.nio.channels.SocketChannel#socket` | JDK class TeaVM lacks | 4 |
| `java.nio.channels.SelectionKey#attachment` | JDK class TeaVM lacks | 3 |
| `java.nio.channels.Selector#close` | JDK class TeaVM lacks | 3 |
| `java.nio.channels.Selector#keys` | JDK class TeaVM lacks | 3 |
| `java.nio.channels.Selector#selectedKeys` | JDK class TeaVM lacks | 3 |
| `java.nio.channels.ServerSocketChannel` | JDK class TeaVM lacks | 3 |
| `java.nio.channels.spi.SelectorProvider#provider` | JDK class TeaVM lacks | 3 |
| ...and 31 more | | 42 |
### Logging backend discovery (ServiceLoader, class loading): bind the console logger directly
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.concurrent.locks.Lock#unlock` | JDK class TeaVM lacks | 7 |
| `java.lang.reflect.Method#invoke` | reflection | 6 |
| `java.util.concurrent.locks.Lock#lock` | JDK class TeaVM lacks | 6 |
| `java.lang.Class#forName` | reflection | 5 |
| `java.lang.ClassLoader#getResources` | missing method, reflection | 4 |
| `java.lang.ClassLoader#loadClass` | missing method, reflection | 4 |
| `java.util.ServiceLoader#load` | reflection | 4 |
| `java.util.concurrent.locks.ReentrantLock` | JDK class TeaVM lacks | 4 |
| `java.util.concurrent.locks.ReentrantLock#<init>` | JDK class TeaVM lacks | 4 |
| `java.lang.ClassLoader#getSystemClassLoader` | reflection | 3 |
| `java.lang.Class#getMethod` | reflection | 2 |
| `java.lang.System#getenv` | missing method | 2 |
| ...and 28 more | | 37 |
### Shader toolchain: GLSL to SPIR-V (shaderc) and back (SPIRV-Cross) runs natively; move it to build time
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.util.shaderc.Shaderc#shaderc_compile_options_add_macro_definition` | missing class | 5 |
| `org.lwjgl.util.spvc.SpvcReflectedResource#id` | missing class | 5 |
| `org.lwjgl.util.spvc.Spvc#spvc_compiler_get_binary_offset_for_decoration` | missing class | 4 |
| `org.lwjgl.util.spvc.Spvc#spvc_compiler_get_type_handle` | missing class | 3 |
| `org.lwjgl.util.spvc.Spvc#spvc_resources_get_resource_list_for_type` | missing class | 3 |
| `org.lwjgl.util.spvc.SpvcReflectedResource` | missing class | 3 |
| `org.lwjgl.util.spvc.SpvcReflectedResource#create` | missing class | 3 |
| `org.lwjgl.util.spvc.SpvcReflectedResource#nameString` | missing class | 3 |
| `org.lwjgl.util.spvc.SpvcReflectedResource#type_id` | missing class | 3 |
| `org.lwjgl.util.spvc.SpvcReflectedResource$Buffer#get` | missing class | 3 |
| `org.lwjgl.util.shaderc.ShadercIncludeResolve#close` | missing class | 2 |
| `org.lwjgl.util.shaderc.ShadercIncludeResult#address` | missing class | 2 |
| ...and 34 more | | 37 |
### Gson reflective type adapters: register explicit adapters, or keep Gson on JsonElement trees
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.reflect.Method#invoke` | reflection | 11 |
| `java.lang.reflect.Field#getName` | reflection | 10 |
| `java.lang.reflect.Field#getAnnotation` | reflection | 7 |
| `java.lang.Class#getMethod` | reflection | 6 |
| `java.lang.Class#forName` | reflection | 4 |
| `java.lang.Class#getDeclaredMethod` | reflection | 4 |
| `java.lang.Class#getGenericSuperclass` | reflection | 4 |
| `java.lang.Class#getDeclaredConstructor` | reflection | 3 |
| `java.lang.reflect.Constructor#newInstance` | reflection | 3 |
| `java.lang.reflect.Field#get` | reflection | 3 |
| `java.lang.reflect.Field#getModifiers` | reflection | 3 |
| `java.lang.Class#getAnnotation` | reflection | 2 |
| ...and 12 more | | 14 |
### Audio (OpenAL): Web Audio
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.openal.AL10#alSourcef` | missing class | 5 |
| `org.lwjgl.openal.AL10#alSourcei` | missing class | 5 |
| `org.lwjgl.openal.ALC10#alcGetString` | missing class | 3 |
| `org.lwjgl.openal.ALC10#alcIsExtensionPresent` | missing class | 3 |
| `javax.sound.sampled.AudioFormat#getChannels` | JDK class TeaVM lacks | 2 |
| `javax.sound.sampled.AudioFormat#getSampleRate` | JDK class TeaVM lacks | 2 |
| `javax.sound.sampled.AudioFormat#getSampleSizeInBits` | JDK class TeaVM lacks | 2 |
| `org.lwjgl.openal.AL10#alDeleteBuffers` | missing class | 2 |
| `org.lwjgl.openal.AL10#alGetSourcei` | missing class | 2 |
| `org.lwjgl.openal.AL10#alSourcePlay` | missing class | 2 |
| `org.lwjgl.openal.AL10#alSourceStop` | missing class | 2 |
| `org.lwjgl.openal.ALC10#alcGetError` | missing class | 2 |
| ...and 37 more | | 38 |
### Netty channels and pipeline: WebSocket transport under Connection
| API | Kind | Call sites |
| --- | --- | ---: |
| `io.netty.util.concurrent.MpscIntQueue$MpscAtomicIntegerArrayQueue#get` | missing method | 4 |
| `io.netty.util.concurrent.MpscIntQueue$MpscAtomicIntegerArrayQueue#lazySet` | missing method | 4 |
| `io.netty.util.concurrent.Future#isCancelled` | missing method | 3 |
| `io.netty.buffer.AllocateBufferEvent#commit` | missing method | 2 |
| `io.netty.buffer.AllocateBufferEvent#shouldCommit` | missing method | 2 |
| `io.netty.channel.ChannelFuture#isDone` | missing method | 2 |
| `io.netty.util.concurrent.MpscIntQueue$MpscAtomicIntegerArrayQueue#length` | missing method | 2 |
| `io.netty.buffer.AllocateBufferEvent#isEnabled` | missing method | 1 |
| `io.netty.buffer.AllocateChunkEvent#commit` | missing method | 1 |
| `io.netty.buffer.AllocateChunkEvent#isEnabled` | missing method | 1 |
| `io.netty.buffer.AllocateChunkEvent#shouldCommit` | missing method | 1 |
| `io.netty.buffer.FreeBufferEvent#commit` | missing method | 1 |
| ...and 19 more | | 19 |
### TrueType fonts (FreeType): pre-baked glyph atlases, Canvas2D for pack fonts
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.util.freetype.FT_Bitmap#rows` | missing class | 4 |
| `org.lwjgl.util.freetype.FT_Bitmap#width` | missing class | 4 |
| `org.lwjgl.util.freetype.FT_Face#glyph` | missing class | 2 |
| `org.lwjgl.util.freetype.FT_GlyphSlot#bitmap` | missing class | 2 |
| `org.lwjgl.util.freetype.FreeType#FT_Done_Face` | missing class | 2 |
| `org.lwjgl.util.freetype.FreeType#FT_Load_Glyph` | missing class | 2 |
| `org.lwjgl.util.freetype.FT_Bitmap#buffer` | missing class | 1 |
| `org.lwjgl.util.freetype.FT_Bitmap#pixel_mode` | missing class | 1 |
| `org.lwjgl.util.freetype.FT_Face#create` | missing class | 1 |
| `org.lwjgl.util.freetype.FT_GlyphSlot` | missing class | 1 |
| `org.lwjgl.util.freetype.FT_GlyphSlot#advance` | missing class | 1 |
| `org.lwjgl.util.freetype.FT_GlyphSlot#bitmap_left` | missing class | 1 |
| ...and 16 more | | 16 |
### Game code using reflection: replace with direct references
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.Class#forName` | reflection | 4 |
| `java.lang.Class#getConstructor` | reflection | 1 |
| `java.lang.Class#getDeclaredField` | reflection | 1 |
| `java.lang.Class#getDeclaredMethod` | reflection | 1 |
| `java.lang.ClassLoader#getResources` | reflection | 1 |
| `java.lang.invoke.MethodHandles#lookup` | reflection | 1 |
| `java.lang.invoke.MethodHandles$Lookup#unreflect` | reflection | 1 |
| `java.lang.reflect.Constructor#newInstance` | reflection | 1 |
| `java.lang.reflect.Field#get` | reflection | 1 |
| `java.lang.reflect.Field#setAccessible` | reflection | 1 |
| `java.util.ServiceLoader#load` | reflection | 1 |
### Image decode and encode (STB): createImageBitmap or a pure-Java codec
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.stb.STBImage#stbi_failure_reason` | missing class | 3 |
| `com.mojang.blaze3d.platform.NativeImage$WriteCallback#address` | missing method | 1 |
| `com.mojang.blaze3d.platform.NativeImage$WriteCallback#free` | missing method | 1 |
| `com.mojang.blaze3d.platform.NativeImage$WriteCallback#getData` | missing method | 1 |
| `org.lwjgl.stb.STBIWriteCallback` | missing supertype | 1 |
| `org.lwjgl.stb.STBIWriteCallback#<init>` | missing class | 1 |
| `org.lwjgl.stb.STBImage#nstbi_image_free` | missing class | 1 |
| `org.lwjgl.stb.STBImage#stbi_load_from_memory` | missing class | 1 |
| `org.lwjgl.stb.STBImageResize#nstbir_resize_uint8_linear` | missing class | 1 |
| `org.lwjgl.stb.STBImageWrite#nstbi_write_png_to_func` | missing class | 1 |
### Netty's own thread class (a ThreadGroup constructor TeaVM lacks): event loops get their threads from the game's factory
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.Thread#<init>` | missing method | 1 |
## Delete
The feature is stripped from the browser build. 18 work items, 1145 APIs, 2227 call sites.
| Work item | APIs | Call sites | Where the calls are |
| --- | ---: | ---: | --- |
| Vulkan backend (the browser gets WebGL2, later WebGPU) | 710 | 1336 | `com.mojang.renderpearl.backend.vulkan` (1268), `com.mojang.renderpearl.backend.vulkan.init` (45), `com.mojang.renderpearl.backend.vulkan.checkpoints` (19), `com.mojang.blaze3d.platform` (2), +1 more |
| Java Flight Recorder profiling | 85 | 189 | `net.minecraft.util.profiling.jfr` (69), `net.minecraft.util.profiling.jfr.stats` (44), `net.minecraft.util.profiling.jfr.parse` (32), `net.minecraft.util.profiling.jfr.event` (28), +3 more |
| Realms (Mojang's hosting service and its HTTP client) | 84 | 185 | `com.mojang.realmsclient.client` (69), `com.mojang.realmsclient.gui.screens.configuration` (39), `com.mojang.realmsclient.gui.screens` (24), `com.mojang.realmsclient.client.worldupload` (10), +6 more |
| Tracy profiler hooks | 29 | 101 | `com.mojang.renderpearl.backend.opengl` (17), `com.mojang.renderpearl.frontend.shaders` (16), `net.minecraft` (11), `net.minecraft.util.profiling` (10), +11 more |
| Library support for optional runtimes (OSGi, Log4j 1, java.sql) | 25 | 95 | `netty-common` (70), `gson` (18), `log4j-api` (7) |
| Encryption and signing (Mojang auth, chat signing, key pairs); offline and Eagler modes don't use them | 55 | 84 | `net.minecraft.util` (43), `authlib` (12), `guava` (12), `net.minecraft.network` (4), +6 more |
| OSHI hardware info (crash reports, telemetry) | 32 | 47 | `net.minecraft` (31), `net.minecraft.util.profiling.metrics.profiling` (9), `net.minecraft.client.gui.components.debug` (7) |
| Native library loading and LWJGL setup | 21 | 39 | `com.mojang.blaze3d.platform` (36), `com.mojang.renderpearl.backend.opengl` (2), `com.mojang.blaze3d.systems` (1) |
| JNA Windows process inspection (crash reports) | 24 | 33 | `net.minecraft.util` (33) |
| LAN world discovery and hosting (UDP multicast, server sockets) | 22 | 31 | `net.minecraft.client.server` (19), `net.minecraft.util` (10), `netty-common` (1), `netty-transport` (1) |
| Debug tool that mirrors a player between servers | 18 | 25 | `net.minecraft.server.chase` (25) |
| JMX server monitoring (MBeans) | 17 | 20 | `net.minecraft.util.monitoring.jmx` (20) |
| Microsoft account services (login, server chat filter) | 12 | 13 | `net.minecraft.server.network` (13) |
| macOS window integration | 6 | 9 | `com.mojang.blaze3d.platform` (9) |
| Native socket transports (epoll, kqueue) | 8 | 8 | `net.minecraft.server.network` (8) |
| DNS SRV lookup of server addresses (JNDI) | 5 | 5 | `net.minecraft.client.multiplayer.resolver` (5) |
| Operating system queries in Netty (somaxconn through sysctl): a page runs no processes | 5 | 5 | `netty-common` (5) |
| Dedicated server code the client reaches (watchdog, properties) | 2 | 2 | `net.minecraft.server.dedicated` (2) |
### Vulkan backend (the browser gets WebGL2, later WebGPU)
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.system.MemoryStack#close` | missing class | 138 |
| `org.lwjgl.system.MemoryStack#stackPush` | missing class | 63 |
| `org.lwjgl.system.MemoryStack#callocLong` | missing class | 22 |
| `org.lwjgl.PointerBuffer#get` | missing class | 13 |
| `org.lwjgl.system.MemoryStack#callocPointer` | missing class | 13 |
| `org.lwjgl.system.MemoryStack#callocInt` | missing class | 11 |
| `org.lwjgl.vulkan.VkDevice#getPhysicalDevice` | missing class | 10 |
| `org.lwjgl.PointerBuffer#limit` | missing class | 7 |
| `org.lwjgl.system.MemoryStack#UTF8` | missing class | 7 |
| `org.lwjgl.system.MemoryStack#longs` | missing class | 7 |
| `org.lwjgl.vulkan.VkPhysicalDeviceProperties2#properties` | missing class | 7 |
| `org.lwjgl.vulkan.VkQueueFamilyProperties#queueFlags` | missing class | 7 |
| ...and 698 more | | 1031 |
### Java Flight Recorder profiling
| API | Kind | Call sites |
| --- | --- | ---: |
| `jdk.jfr.EventType#isEnabled` | JDK class TeaVM lacks | 11 |
| `jdk.jfr.consumer.RecordedEvent#getString` | JDK class TeaVM lacks | 11 |
| `jdk.jfr.EventType#getEventType` | JDK class TeaVM lacks | 10 |
| `jdk.jfr.consumer.RecordedEvent#getInt` | JDK class TeaVM lacks | 10 |
| `java.time.Duration#toNanos` | JDK class TeaVM lacks | 9 |
| `jdk.jfr.Event` | JDK class TeaVM lacks | 9 |
| `jdk.jfr.Event#<init>` | JDK class TeaVM lacks | 9 |
| `java.time.Duration#getSeconds` | JDK class TeaVM lacks | 6 |
| `jdk.jfr.consumer.RecordedEvent#getDuration` | JDK class TeaVM lacks | 6 |
| `jdk.jfr.consumer.RecordedEvent#getStartTime` | JDK class TeaVM lacks | 5 |
| `java.time.Duration#toMillis` | JDK class TeaVM lacks | 4 |
| `java.time.Instant#EPOCH` | JDK class TeaVM lacks | 4 |
| ...and 73 more | | 95 |
### Realms (Mojang's hosting service and its HTTP client)
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.concurrent.CompletableFuture#thenAcceptAsync` | JDK class TeaVM lacks | 14 |
| `java.util.concurrent.CompletableFuture#supplyAsync` | JDK class TeaVM lacks | 9 |
| `java.time.Duration#ofSeconds` | JDK class TeaVM lacks | 7 |
| `java.time.Duration#ofMinutes` | JDK class TeaVM lacks | 6 |
| `java.util.concurrent.CompletableFuture#thenRunAsync` | JDK class TeaVM lacks | 6 |
| `java.net.http.HttpClient#close` | JDK class TeaVM lacks | 5 |
| `java.net.http.HttpResponse#headers` | JDK class TeaVM lacks | 4 |
| `java.time.format.DateTimeFormatter#format` | JDK class TeaVM lacks | 4 |
| `java.util.concurrent.CompletableFuture#cancel` | JDK class TeaVM lacks | 4 |
| `java.util.concurrent.CompletableFuture#getNow` | JDK class TeaVM lacks | 4 |
| `java.util.concurrent.CompletableFuture#join` | JDK class TeaVM lacks | 4 |
| `java.util.concurrent.CompletionException` | JDK class TeaVM lacks | 4 |
| ...and 72 more | | 114 |
### Tracy profiler hooks
| API | Kind | Call sites |
| --- | --- | ---: |
| `com.mojang.jtracy.Zone#close` | missing class | 25 |
| `com.mojang.jtracy.TracyClient#beginZone` | missing class | 13 |
| `com.mojang.jtracy.TracyClient#isAvailable` | missing class | 7 |
| `com.mojang.jtracy.Zone#addText` | missing class | 7 |
| `com.mojang.jtracy.MemoryPool#malloc` | missing class | 5 |
| `com.mojang.jtracy.Plot#setValue` | missing class | 5 |
| `com.mojang.jtracy.MemoryPool#free` | missing class | 4 |
| `com.mojang.jtracy.TracyClient#createMemoryPool` | missing class | 3 |
| `com.mojang.jtracy.TracyClient#createPlot` | missing class | 3 |
| `com.mojang.jtracy.DiscontinuousFrame#end` | missing class | 2 |
| `com.mojang.jtracy.DiscontinuousFrame#start` | missing class | 2 |
| `com.mojang.jtracy.GpuContext#submitQueryTimestamp` | missing class | 2 |
| ...and 17 more | | 23 |
### Library support for optional runtimes (OSGi, Log4j 1, java.sql)
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.apache.log4j.Logger#log` | missing class | 20 |
| `org.apache.log4j.Level#ERROR` | missing class | 9 |
| `org.apache.log4j.Level#WARN` | missing class | 9 |
| `org.apache.log4j.Level#DEBUG` | missing class | 8 |
| `org.apache.log4j.Logger#isEnabledFor` | missing class | 8 |
| `java.sql.Date` | JDK class TeaVM lacks | 5 |
| `java.sql.Timestamp` | JDK class TeaVM lacks | 5 |
| `org.apache.log4j.Logger#isDebugEnabled` | missing class | 5 |
| `java.sql.Time` | JDK class TeaVM lacks | 3 |
| `org.apache.log4j.Level#TRACE` | missing class | 3 |
| `java.sql.Date#<init>` | JDK class TeaVM lacks | 2 |
| `java.sql.Timestamp#<init>` | JDK class TeaVM lacks | 2 |
| ...and 13 more | | 16 |
### Encryption and signing (Mojang auth, chat signing, key pairs); offline and Eagler modes don't use them
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.security.MessageDigest#update` | JDK class TeaVM lacks | 4 |
| `java.security.PublicKey#getEncoded` | JDK class TeaVM lacks | 4 |
| `java.security.KeyFactory#getInstance` | JDK class TeaVM lacks | 3 |
| `java.security.MessageDigest#digest` | JDK class TeaVM lacks | 3 |
| `java.security.Signature#getInstance` | JDK class TeaVM lacks | 3 |
| `java.security.AccessController#checkPermission` | missing method | 2 |
| `java.security.KeyFactory#generatePublic` | JDK class TeaVM lacks | 2 |
| `java.security.KeyPair#getPublic` | JDK class TeaVM lacks | 2 |
| `java.security.MessageDigest#clone` | JDK class TeaVM lacks | 2 |
| `java.security.MessageDigest#getDigestLength` | JDK class TeaVM lacks | 2 |
| `java.security.MessageDigest#getInstance` | JDK class TeaVM lacks | 2 |
| `java.security.PublicKey#getAlgorithm` | JDK class TeaVM lacks | 2 |
| ...and 43 more | | 53 |
### OSHI hardware info (crash reports, telemetry)
| API | Kind | Call sites |
| --- | --- | ---: |
| `oshi.SystemInfo` | missing class | 4 |
| `oshi.SystemInfo#<init>` | missing class | 4 |
| `oshi.SystemInfo#getHardware` | missing class | 3 |
| `oshi.hardware.CentralProcessor#getLogicalProcessorCount` | missing class | 3 |
| `oshi.hardware.HardwareAbstractionLayer#getProcessor` | missing class | 3 |
| `oshi.hardware.CentralProcessor#getProcessorCpuLoadBetweenTicks` | missing class | 2 |
| `oshi.hardware.CentralProcessor#getProcessorCpuLoadTicks` | missing class | 2 |
| `oshi.hardware.CentralProcessor#getProcessorIdentifier` | missing class | 2 |
| `oshi.SystemInfo#getOperatingSystem` | missing class | 1 |
| `oshi.hardware.CentralProcessor#getPhysicalPackageCount` | missing class | 1 |
| `oshi.hardware.CentralProcessor#getPhysicalProcessorCount` | missing class | 1 |
| `oshi.hardware.CentralProcessor$ProcessorIdentifier#getName` | missing class | 1 |
| ...and 20 more | | 20 |
### Native library loading and LWJGL setup
| API | Kind | Call sites |
| --- | --- | ---: |
| `org.lwjgl.system.Configuration#get` | missing class | 7 |
| `org.lwjgl.system.Configuration#set` | missing class | 5 |
| `org.lwjgl.system.Configuration#DEBUG_LOADER` | missing class | 3 |
| `org.lwjgl.system.Configuration#SHARED_LIBRARY_EXTRACT_PATH` | missing class | 3 |
| `org.lwjgl.Version#getVersion` | missing class | 2 |
| `org.lwjgl.system.Configuration#DEBUG_STREAM` | missing class | 2 |
| `org.lwjgl.system.Configuration#VULKAN_EXPLICIT_INIT` | missing class | 2 |
| `org.lwjgl.system.Platform#getArchitecture` | missing class | 2 |
| `java.lang.UnsatisfiedLinkError` | JDK class TeaVM lacks | 1 |
| `java.lang.UnsatisfiedLinkError#<init>` | JDK class TeaVM lacks | 1 |
| `org.lwjgl.system.Configuration#DEBUG` | missing class | 1 |
| `org.lwjgl.system.Configuration#LIBRARY_PATH` | missing class | 1 |
| ...and 9 more | | 9 |
### JNA Windows process inspection (crash reports)
| API | Kind | Call sites |
| --- | --- | ---: |
| `com.sun.jna.platform.win32.Version#INSTANCE` | missing class | 3 |
| `com.sun.jna.Native#getLastError` | missing class | 2 |
| `com.sun.jna.Platform#isWindows` | missing class | 2 |
| `com.sun.jna.platform.win32.Win32Exception` | missing class | 2 |
| `com.sun.jna.platform.win32.Win32Exception#<init>` | missing class | 2 |
| `com.sun.jna.ptr.IntByReference` | missing class | 2 |
| `com.sun.jna.ptr.IntByReference#<init>` | missing class | 2 |
| `com.sun.jna.ptr.IntByReference#getValue` | missing class | 2 |
| `com.sun.jna.Memory` | missing class | 1 |
| `com.sun.jna.Memory#<init>` | missing class | 1 |
| `com.sun.jna.Pointer#getByteArray` | missing class | 1 |
| `com.sun.jna.Pointer#getIntArray` | missing class | 1 |
| ...and 12 more | | 12 |
### LAN world discovery and hosting (UDP multicast, server sockets)
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.net.ServerSocket#close` | JDK class TeaVM lacks | 4 |
| `java.net.DatagramPacket` | JDK class TeaVM lacks | 2 |
| `java.net.DatagramPacket#<init>` | JDK class TeaVM lacks | 2 |
| `java.net.DatagramPacket#getAddress` | JDK class TeaVM lacks | 2 |
| `java.net.ServerSocket` | JDK class TeaVM lacks | 2 |
| `java.net.ServerSocket#<init>` | JDK class TeaVM lacks | 2 |
| `java.net.ServerSocket#getLocalPort` | JDK class TeaVM lacks | 2 |
| `java.net.DatagramPacket#getData` | JDK class TeaVM lacks | 1 |
| `java.net.DatagramPacket#getLength` | JDK class TeaVM lacks | 1 |
| `java.net.DatagramPacket#getOffset` | JDK class TeaVM lacks | 1 |
| `java.net.DatagramSocket` | JDK class TeaVM lacks | 1 |
| `java.net.DatagramSocket#<init>` | JDK class TeaVM lacks | 1 |
| ...and 10 more | | 10 |
### Debug tool that mirrors a player between servers
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.util.Scanner#nextFloat` | JDK class TeaVM lacks | 5 |
| `java.net.Socket` | JDK class TeaVM lacks | 2 |
| `java.util.Scanner#close` | JDK class TeaVM lacks | 2 |
| `java.util.Scanner#next` | JDK class TeaVM lacks | 2 |
| `java.net.InetAddress#getByName` | JDK class TeaVM lacks | 1 |
| `java.net.ServerSocket` | JDK class TeaVM lacks | 1 |
| `java.net.ServerSocket#<init>` | JDK class TeaVM lacks | 1 |
| `java.net.ServerSocket#accept` | JDK class TeaVM lacks | 1 |
| `java.net.ServerSocket#isClosed` | JDK class TeaVM lacks | 1 |
| `java.net.Socket#<init>` | JDK class TeaVM lacks | 1 |
| `java.net.Socket#getInputStream` | JDK class TeaVM lacks | 1 |
| `java.net.Socket#getOutputStream` | JDK class TeaVM lacks | 1 |
| ...and 6 more | | 6 |
### JMX server monitoring (MBeans)
| API | Kind | Call sites |
| --- | --- | ---: |
| `javax.management.AttributeList` | JDK class TeaVM lacks | 2 |
| `javax.management.AttributeList#<init>` | JDK class TeaVM lacks | 2 |
| `javax.management.MBeanAttributeInfo` | JDK class TeaVM lacks | 2 |
| `javax.management.Attribute` | JDK class TeaVM lacks | 1 |
| `javax.management.Attribute#<init>` | JDK class TeaVM lacks | 1 |
| `javax.management.DynamicMBean` | JDK class TeaVM lacks | 1 |
| `javax.management.InstanceAlreadyExistsException` | JDK class TeaVM lacks | 1 |
| `javax.management.MBeanAttributeInfo#<init>` | JDK class TeaVM lacks | 1 |
| `javax.management.MBeanInfo` | JDK class TeaVM lacks | 1 |
| `javax.management.MBeanInfo#<init>` | JDK class TeaVM lacks | 1 |
| `javax.management.MBeanNotificationInfo` | JDK class TeaVM lacks | 1 |
| `javax.management.MBeanRegistrationException` | JDK class TeaVM lacks | 1 |
| ...and 5 more | | 5 |
### Microsoft account services (login, server chat filter)
| API | Kind | Call sites |
| --- | --- | ---: |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder` | missing class | 2 |
| `com.microsoft.aad.msal4j.ClientCredentialFactory#createFromCertificate` | missing class | 1 |
| `com.microsoft.aad.msal4j.ClientCredentialParameters#builder` | missing class | 1 |
| `com.microsoft.aad.msal4j.ClientCredentialParameters$ClientCredentialParametersBuilder#build` | missing class | 1 |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication#acquireToken` | missing class | 1 |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication#builder` | missing class | 1 |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder#authority` | missing class | 1 |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder#build` | missing class | 1 |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder#executorService` | missing class | 1 |
| `com.microsoft.aad.msal4j.ConfidentialClientApplication$Builder#sendX5c` | missing class | 1 |
| `com.microsoft.aad.msal4j.IAuthenticationResult` | missing class | 1 |
| `com.microsoft.aad.msal4j.IAuthenticationResult#accessToken` | missing class | 1 |
### macOS window integration
| API | Kind | Call sites |
| --- | --- | ---: |
| `ca.weblite.objc.Proxy#send` | missing class | 3 |
| `ca.weblite.objc.Proxy#sendProxy` | missing class | 2 |
| `ca.weblite.objc.Client#getInstance` | missing class | 1 |
| `ca.weblite.objc.Client#sendProxy` | missing class | 1 |
| `ca.weblite.objc.Proxy#sendInt` | missing class | 1 |
| `ca.weblite.objc.Proxy#sendRaw` | missing class | 1 |
### Native socket transports (epoll, kqueue)
| API | Kind | Call sites |
| --- | --- | ---: |
| `io.netty.channel.epoll.Epoll#isAvailable` | missing class | 1 |
| `io.netty.channel.epoll.EpollIoHandler#newFactory` | missing class | 1 |
| `io.netty.channel.epoll.EpollServerSocketChannel` | missing class | 1 |
| `io.netty.channel.epoll.EpollSocketChannel` | missing class | 1 |
| `io.netty.channel.kqueue.KQueue#isAvailable` | missing class | 1 |
| `io.netty.channel.kqueue.KQueueIoHandler#newFactory` | missing class | 1 |
| `io.netty.channel.kqueue.KQueueServerSocketChannel` | missing class | 1 |
| `io.netty.channel.kqueue.KQueueSocketChannel` | missing class | 1 |
### DNS SRV lookup of server addresses (JNDI)
| API | Kind | Call sites |
| --- | --- | ---: |
| `javax.naming.directory.Attribute#get` | JDK class TeaVM lacks | 1 |
| `javax.naming.directory.Attributes#get` | JDK class TeaVM lacks | 1 |
| `javax.naming.directory.DirContext#getAttributes` | JDK class TeaVM lacks | 1 |
| `javax.naming.directory.InitialDirContext` | JDK class TeaVM lacks | 1 |
| `javax.naming.directory.InitialDirContext#<init>` | JDK class TeaVM lacks | 1 |
### Operating system queries in Netty (somaxconn through sysctl): a page runs no processes
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.Process#destroy` | JDK class TeaVM lacks | 1 |
| `java.lang.Process#getInputStream` | JDK class TeaVM lacks | 1 |
| `java.lang.ProcessBuilder` | JDK class TeaVM lacks | 1 |
| `java.lang.ProcessBuilder#<init>` | JDK class TeaVM lacks | 1 |
| `java.lang.ProcessBuilder#start` | JDK class TeaVM lacks | 1 |
### Dedicated server code the client reaches (watchdog, properties)
| API | Kind | Call sites |
| --- | --- | ---: |
| `java.lang.management.ThreadInfo#getStackTrace` | JDK class TeaVM lacks | 1 |
| `java.lang.management.ThreadInfo#getThreadId` | JDK class TeaVM lacks | 1 |
## Inputs
- Minecraft 26.3, entry point `net.minecraft.client.main.Main` plus every client class except the `no-root` packages
- TeaVM 0.15.0, WebAssembly GC target, run on JDK 25
- Reachable classes by origin: generated lambda classes 24,480, Minecraft 10,598, libraries 4,384, TeaVM class library 1,253, stubbed library classes 430, stubbed JDK classes 303, survey roots 71
Libraries, as decided in `tools/survey/rules.txt`. Only `keep` libraries are compiled; calls into the others show up above as missing classes at their call sites.
| Library | Decision | Why |
| --- | --- | --- |
| `at.yawk.lz4:lz4-java:1.10.1` | keep | Has a pure-Java implementation |
| `com.google.code.gson:gson:2.14.0` | keep | Guava, Gson, failureaccess: pure Java |
| `com.google.guava:failureaccess:1.0.3` | keep | Guava, Gson, failureaccess: pure Java |
| `com.google.guava:guava:33.6.0-jre` | keep | Guava, Gson, failureaccess: pure Java |
| `com.mojang:authlib:10.0.77` | keep | GameProfile and properties are used everywhere; its HTTP parts get cut |
| `com.mojang:blocklist:1.0.10` | keep | Brigadier, DataFixerUpper codecs, logging, blocklist, patchy |
| `com.mojang:brigadier:1.3.11` | keep | Brigadier, DataFixerUpper codecs, logging, blocklist, patchy |
| `com.mojang:datafixerupper:10.0.21` | keep | Brigadier, DataFixerUpper codecs, logging, blocklist, patchy |
| `com.mojang:logging:1.7.12` | keep | Brigadier, DataFixerUpper codecs, logging, blocklist, patchy |
| `com.mojang:patchy:2.2.10` | keep | Brigadier, DataFixerUpper codecs, logging, blocklist, patchy |
| `commons-codec:commons-codec:1.22.0` | keep | Pure Java |
| `commons-io:commons-io:2.20.0` | keep | Pure Java |
| `io.netty:netty-buffer:4.2.16.Final` | keep | FriendlyByteBuf extends ByteBuf; pure Java in heap mode |
| `io.netty:netty-codec-base:4.2.16.Final` | keep | The game's packet codecs extend its encoders and decoders |
| `io.netty:netty-common:4.2.16.Final` | keep | Needed by netty-buffer |
| `io.netty:netty-handler:4.2.16.Final` | keep | The read timeout and flow control in the game's pipeline |
| `io.netty:netty-resolver:4.2.16.Final` | keep | Bootstrap's address resolution; WebSocket addresses need none |
| `io.netty:netty-transport:4.2.16.Final` | keep | The game's Connection is a Netty pipeline; it runs over the WebSocket transport (ADR 0008) |
| `it.unimi.dsi:fastutil:8.5.18` | keep | Pure Java collections |
| `net.sf.jopt-simple:jopt-simple:5.0.4` | keep | Command-line parsing for Main |
| `org.apache.commons:commons-compress:1.28.0` | keep | commons-lang3, commons-compress: pure Java |
| `org.apache.commons:commons-lang3:3.20.0` | keep | commons-lang3, commons-compress: pure Java |
| `org.apache.logging.log4j:log4j-api:2.26.0` | keep | API only; backed by the console shim |
| `org.jcraft:jorbis:0.0.17` | keep | Pure-Java Ogg Vorbis decoder, useful for Web Audio |
| `org.joml:joml:1.10.9` | keep | Pure Java math |
| `org.jspecify:jspecify:1.0.0` | keep | Annotations only |
| `org.slf4j:slf4j-api:2.0.17` | keep | API only; backed by the console shim |
| `com.ibm.icu:icu4j:78.3` | replace | Bidi text; the browser has Intl, or a minimal shim |
| `com.mojang:text2speech:1.19.12` | replace | Narrator; the browser has the Web Speech API |
| `io.netty:netty-codec-compression:4.2.16.Final` | replace | Native transports, compression and HTTP codecs: the browser has none of them |
| `io.netty:netty-codec-http:4.2.16.Final` | replace | Native transports, compression and HTTP codecs: the browser has none of them |
| `io.netty:netty-transport-classes-epoll:4.2.16.Final` | replace | Native transports, compression and HTTP codecs: the browser has none of them |
| `io.netty:netty-transport-classes-kqueue:4.2.16.Final` | replace | Native transports, compression and HTTP codecs: the browser has none of them |
| `io.netty:netty-transport-native-unix-common:4.2.16.Final` | replace | Native transports, compression and HTTP codecs: the browser has none of them |
| `org.apache.logging.log4j:log4j-core:2.26.0` | replace | Console logging shim |
| `org.apache.logging.log4j:log4j-slf4j2-impl:2.26.0` | replace | Console logging shim |
| `org.lwjgl:lwjgl-freetype:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-jemalloc:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-openal:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-opengl:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-sdl:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-shaderc:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-spvc:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-stb:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-vma:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl-vulkan:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `org.lwjgl:lwjgl:3.4.3` | replace | Platform layer: WebGL2, canvas input, Web Audio, fonts |
| `ca.weblite:java-objc-bridge:1.1` | delete | macOS-only native bridge |
| `com.azure:azure-json:1.4.0` | delete | Only used by msal4j |
| `com.github.oshi:oshi-core:6.9.0` | delete | Hardware and OS telemetry |
| `com.microsoft.azure:msal4j:1.24.1` | delete | Microsoft login; the browser build uses offline or Eagler identity |
| `com.mojang:jtracy:1.14.38` | delete | Tracy profiler (native) |
| `net.java.dev.jna:jna-platform:5.17.0` | delete | Native interop; only OSHI and OS integration use it |
| `net.java.dev.jna:jna:5.17.0` | delete | Native interop; only OSHI and OS integration use it |
## Reading this backlog
- **It's the first layer.** TeaVM stops following calls at anything it can't resolve, so stubbing these items uncovers more. Rerun the survey after each round of porting work.
- **Call sites** are distinct (API, calling class, line) triples. Findings TeaVM reported inside JDK or class-library code are charged to the nearest game or library method that calls into it.
- **JDK classes TeaVM lacks.** Left alone, TeaVM would copy them from the JDK running the compile, dragging in JDK internals that can't work in a browser. The survey hides the host JDK, so each is listed where the game uses it.
- **Whole client, not one path.** Every class in the client jar is an analysis root, except the `no-root` packages in `tools/survey/rules.txt` (data generators, dedicated server). Code only the integrated server runs is included; singleplayer is deferred, but its code ships.
- **Stubs let the analysis continue.** TeaVM stops at anything missing, so the survey compiles in rounds, stubbing what each round reports, until nothing new appears. Stubbed items are still findings.
- **Full detail** (every call site with its method and line) is in `work/survey/26.3/findings.json` after a local run. It stays out of git because it names Mojang methods.