< prev index next >

src/java.base/share/native/libjimage/jimage.cpp

Print this page
*** 1,7 ***
  /*
!  * Copyright (c) 2015, 2024, Oracle and/or its affiliates. All rights reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
--- 1,7 ---
  /*
!  * Copyright (c) 2015, 2025, Oracle and/or its affiliates. All rights reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *

*** 84,27 ***
  extern "C" JNIEXPORT void
  JIMAGE_Close(JImageFile* image) {
      ImageFileReader::close((ImageFileReader*) image);
  }
  
- /*
-  * JImagePackageToModule - Given an open image file (see JImageOpen) and the name
-  * of a package, return the name of module where the package resides. If the
-  * package does not exist in the image file, the function returns NULL.
-  * The resulting string does/should not have to be released. All strings are
-  * utf-8, zero byte terminated.
-  *
-  * Ex.
-  *  const char* package = (*JImagePackageToModule)(image, "java/lang");
-  *  tty->print_cr(package);
-  *  -> java.base
-  */
- extern "C" JNIEXPORT const char*
- JIMAGE_PackageToModule(JImageFile* image, const char* package_name) {
-     return ((ImageFileReader*) image)->get_image_module_data()->package_to_module(package_name);
- }
- 
  /*
   * JImageFindResource - Given an open image file (see JImageOpen), a module
   * name, a version string and the name of a class/resource, return location
   * information describing the resource and its size. If no resource is found, the
   * function returns JIMAGE_NOT_FOUND and the value of size is undefined.
--- 84,10 ---
< prev index next >