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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 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
    • Fix Version/s: 1.2.0
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.2
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_2.4, solaris_2.5.1, solaris_2.6, windows_95, windows_nt
    • Verification:
      Not verified

      Description



      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: