Skip to content

Instantly share code, notes, and snippets.

@davidbilge
davidbilge / CustomJoglOffscreenBuffer.java
Last active Apr 29, 2016
Modifications to JoglOffscreenBuffer to remedy some problems
View CustomJoglOffscreenBuffer.java
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.logging.Level;
import java.util.logging.Logger;
import com.jme3.input.JoyInput;
import com.jme3.input.KeyInput;
import com.jme3.input.MouseInput;
import com.jme3.input.TouchInput;
import com.jme3.input.dummy.DummyKeyInput;
import com.jme3.input.dummy.DummyMouseInput;
View gist:d4c134b1fc00b57369dcd6259b0a0178
java.lang.IllegalArgumentException: methods with same signature createConnectionBuilder() but incompatible return types: [interface oracle.ucp.jdbc.UCPConnectionBuilder, interface java.sql.ConnectionBuilder]
at java.base/java.lang.reflect.ProxyGenerator.checkReturnTypes(ProxyGenerator.java:712)
at java.base/java.lang.reflect.ProxyGenerator.generateClassFile(ProxyGenerator.java:461)
at java.base/java.lang.reflect.ProxyGenerator.generateProxyClass(ProxyGenerator.java:339)
at java.base/java.lang.reflect.Proxy$ProxyBuilder.defineProxyClass(Proxy.java:535)
at java.base/java.lang.reflect.Proxy$ProxyBuilder.build(Proxy.java:649)
at java.base/java.lang.reflect.Proxy.lambda$getProxyConstructor$1(Proxy.java:426)
at java.base/jdk.internal.loader.AbstractClassLoaderValue$Memoizer.get(AbstractClassLoaderValue.java:329)
at java.base/jdk.internal.loader.AbstractClassLoaderValue.computeIfAbsent(AbstractClassLoaderValue.java:205)
at java.base/java.lang.re
View Test.java
package de.cronos.mad.messages.backend;
import java.util.function.Supplier;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.DirectProcessor;
import reactor.core.publisher.Mono;
import reactor.core.scheduler.Schedulers;
public class RepeatTest {
View RepeatTest.java
package de.cronos.mad.messages.backend;
import java.util.List;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.function.Supplier;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import reactor.core.publisher.EmitterProcessor;
import reactor.core.publisher.Mono;