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
@@ -0,0 +1,35 @@
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.local.LocalChannel;
/**
* {@code Bootstrap.channel(Class)} in the browser build: it works for a channel class whose
* constructor tools/webbuild's ReflectionDeclarations declares, and throws for one it doesn't, as
* it did for PlatformSocketChannel in the server list's legacy ping (which crashed the game).
*/
public final class ChannelClassProbe {
private ChannelClassProbe() {}
/** Public, with a public no-arg constructor, like PlatformSocketChannel; not declared. */
public static final class Undeclared extends LocalChannel {
public Undeclared() {}
}
public static void main(String[] args) {
System.setProperty("io.netty.noUnsafe", "true");
try {
new Bootstrap().channel(LocalChannel.class);
System.out.println("channel(Class) accepted a declared class");
} catch (Throwable t) {
System.out.println("probe failed: channel(Class) threw for a declared class: " + t);
return;
}
try {
new Bootstrap().channel(Undeclared.class);
System.out.println("probe failed: channel(Class) accepted an undeclared class");
} catch (Throwable t) {
System.out.println("channel(Class) threw " + t);
System.out.println("probe passed");
}
}
}