Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4052610

A class that is loaded by a non-default ClassLoader cannot link to its native me

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • vj_1.0, 1.0, 1.1, 1.1.1, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.8, 1.2.0
    • hotspot
    • None
    • 1.2
    • generic, x86, sparc
    • generic, solaris_2.4, solaris_2.5.1, solaris_2.6, windows_95, windows_nt
    • Not verified



      Name: sgC58550 Date: 05/16/97


      If a class that defines native methods is loaded by a ClassLoader
      other than the system default ClassLoader, then its native methods
      are never resolved (ie, linked against the underlying libraries).
      in such a situation, at runtime, when the native methods are invoked,
      UnsatisfiedLinkError is thrown. these methods link correctly and work
      fine if the defining class is loaded by the default ClassLoader.

      As an example, system classes that define native methods exhibit this
      problem. for example, java.lang.Thread and sun.awt.windows.WTookit.


      ======================================================================

      Additional info included as attachment.

            apalanissunw Anand Palaniswamy (Inactive)
            sgoodsunw Sheri Good (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: