TEXT   58

jni-policy diff

Guest on 19th May 2022 01:56:37 AM

  1. --- java-common-0.16/policy.xml 2021-09-26 00:53:03.000000000 +1000
  2. +++ java-common-0.16.1/policy.xml       2021-02-09 23:16:23.000000000 +1100
  3. @@ -147,6 +147,14 @@
  4.         virtual machine, you &may; name the compiler package xxxx-dev.
  5.        </para>
  6.        
  7. +      <para>
  8. +       Some Java classes implement their routines using a "native"
  9. +       language (such as C).  This native code is compiled and stored
  10. +       in dynamic libraries (such as JNI modules) that are loaded at
  11. +       runtime.  If a virtual machine supports native code, it &must;
  12. +       include the directory <filename>/usr/lib/jni</filename> in its
  13. +       search path for these dynamic libraries.
  14. +      </para>
  15.      </sect1>
  16.      
  17.      <sect1 id="policy-compiler">
  18. @@ -245,18 +253,27 @@
  19.         This applies only to libraries, <emphasis>not</emphasis> to the core
  20.         classes provied by a the runtime environment.
  21.        </para>
  22. -      
  23. +
  24. +      <para>
  25. +       Some Java libraries rely on code written in a "native" language,
  26. +       such as JNI (Java Native Interface) code.  This native code is
  27. +       compiled into separate dynamic libraries which are loaded by the
  28. +       Java virtual machine at runtime.
  29. +      </para>
  30. +
  31.        <para>
  32. -        If the Java code depends on code written in a "native" language,
  33. -        for example Java Native Interface code, the compiled native code
  34. -        &should; be shipped in a separate architecture-specific package
  35. -        named libXXX[version]-jni. The package containing Java bytecode
  36. -       &should; depend on this package.
  37. +       If a Java library relies on native code, the dynamic libraries
  38. +       containing this compiled native code &should; be installed into
  39. +       the directory <filename>/usr/lib/jni</filename>.  These dynamic
  40. +       libraries &should; be shipped in a separate architecture-specific
  41. +       package named libXXX[version]-jni.  The package containing the Java
  42. +       bytecode (generally libXXX[version]-java) &should; depend on
  43. +       this package.
  44.        </para>
  45.        <para>
  46.         There may be situations, such as with very small packages,
  47.         where it is better to bundle the Java code and the native code
  48. -       together into a single package. Such packages should be
  49. +       together into a single package. Such packages &should; be
  50.         architecture-specific and follow the usual libXXX[version]-java
  51.         naming convention.
  52.        </para>

Raw Paste


Login or Register to edit or fork this paste. It's free.