Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond…

Mark Paluch mp911de

I may be slow to respond…
View GitHub Profile
package org.mybatis.r2dbc.session;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
public interface DemoMapper {
Mono<Integer> insert(Demo demo);
Mono<Integer> insert(Mono<Demo> demo);
forax /
Created Jul 24, 2016
get the trusted lookup using Unsafe.defineAnonymousClass
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import java.lang.invoke.MethodType;
import java.lang.reflect.Field;
import java.util.Base64;
public class LookupProxyTest {
static final String PROXY_CLASS =