This file contains 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 test.se17; | |
import java.lang.constant.ClassDesc; | |
import java.lang.constant.ConstantDesc; | |
import java.lang.constant.DirectMethodHandleDesc; | |
import java.lang.constant.DirectMethodHandleDesc.Kind; | |
import java.lang.constant.DynamicConstantDesc; | |
import java.lang.constant.MethodHandleDesc; | |
import java.lang.constant.MethodTypeDesc; | |
import java.lang.invoke.TypeDescriptor; |
This file contains 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 static java.lang.invoke.MethodType.methodType; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodHandles.Lookup; | |
import java.lang.reflect.RecordComponent; | |
import java.lang.reflect.UndeclaredThrowableException; | |
import java.util.Arrays; | |
import java.util.Map; |
This file contains 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 pw.dasbrain.methodhandle; | |
import java.io.IOException; | |
import java.lang.constant.MethodTypeDesc; | |
import java.lang.invoke.MethodHandle; | |
import java.lang.invoke.MethodHandles; | |
import java.lang.invoke.MethodHandles.Lookup; | |
import java.lang.invoke.MethodType; | |
import java.util.ArrayDeque; |
This file contains 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 test; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.Modifier; | |
public class ChangingStaticFinalsIsStupid { | |
static class Value { | |
// It's Integer, so not a compile time constant | |
public static final Integer VALUE = 10; | |
} |
This file contains 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.reflect.Field; | |
import java.lang.reflect.Modifier; | |
class Main { | |
static class Value { | |
public static final Integer VALUE = 10; | |
} | |
static void setFinalField(Field field, Object newValue) throws Exception { | |
field.setAccessible(true); |
This file contains 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
/* | |
* Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. Oracle designates this | |
* particular file as subject to the "Classpath" exception as provided | |
* by Oracle in the LICENSE file that accompanied this code. | |
* |
This file contains 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
com/sun/jdi/connect/spi/Connection | |
com/sun/jndi/dns/BaseNameClassPairEnumeration | |
com/sun/jndi/dns/DnsClient | |
com/sun/jndi/dns/DnsContext | |
com/sun/jndi/dns/Resolver | |
com/sun/jndi/ldap/AbstractLdapNamingEnumeration | |
com/sun/jndi/ldap/LdapCtx | |
com/sun/jndi/ldap/LdapReferralContext | |
com/sun/jndi/ldap/LdapSchemaCtx | |
com/sun/jndi/ldap/ext/StartTlsResponseImpl |