< prev index next >

src/java.base/share/classes/java/lang/foreign/SymbolLookup.java

Print this page
*** 27,11 ***
  
  import jdk.internal.access.JavaLangAccess;
  import jdk.internal.access.SharedSecrets;
  import jdk.internal.foreign.MemorySessionImpl;
  import jdk.internal.foreign.Utils;
- import jdk.internal.javac.PreviewFeature;
  import jdk.internal.loader.BuiltinClassLoader;
  import jdk.internal.loader.NativeLibrary;
  import jdk.internal.loader.RawNativeLibraries;
  import jdk.internal.reflect.CallerSensitive;
  import jdk.internal.reflect.Reflection;
--- 27,10 ---

*** 117,13 ***
   * Linker nativeLinker = Linker.nativeLinker();
   * SymbolLookup stdlib = nativeLinker.defaultLookup();
   * MemorySegment malloc = stdlib.find("malloc").orElseThrow();
   *}
   *
!  * @since 19
   */
- @PreviewFeature(feature=PreviewFeature.Feature.FOREIGN)
  @FunctionalInterface
  public interface SymbolLookup {
  
      /**
       * Returns the address of the symbol with the given name.
--- 116,12 ---
   * Linker nativeLinker = Linker.nativeLinker();
   * SymbolLookup stdlib = nativeLinker.defaultLookup();
   * MemorySegment malloc = stdlib.find("malloc").orElseThrow();
   *}
   *
!  * @since 22
   */
  @FunctionalInterface
  public interface SymbolLookup {
  
      /**
       * Returns the address of the symbol with the given name.
< prev index next >