Instantly share code, notes, and snippets.
View mp911de's full-sized avatar
π
I may be slow to respond...
Mark Paluch mp911de
π
I may be slow to respond...
Finest hand-crafted software. Spring Data Project Lead, All Things Reactive. Open source, music, and computers.
- Ostfriesland ππ¬οΈππ§οΈ Germany
-
00:10
(UTC +02:00) - http://www.paluch.biz
- @mp911de.bsky.social
- @mp911de@mastodon.social
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
/ LookupProxyTest.java
Created
July 24, 2016 17:46
get the trusted lookup using Unsafe.defineAnonymousClass
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" +