Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
😼

Mark Paluch mp911de

:octocat:
😼
View GitHub Profile
View DemoMapper.java
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
forax / LookupProxyTest.java
Created Jul 24, 2016
get the trusted lookup using Unsafe.defineAnonymousClass
View LookupProxyTest.java
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 =
"yv66vgAAADUAGQoABAAQCQAKABEHABIHABMBAAY8aW5pdD4BAAMoKVYBAARD" +