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

getInterfaces resolves interfaces with wrong classloader

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1
    • CPU:
      sparc
    • OS:
      solaris_2
    • Verification:
      Not verified

      Description

          It looks like Class.getInterfaces() resolves the interface class names
          relative to the class you're call it from (ResolveClassConstant)
          instead of relative to the class itself (ResolveClassConstantFromClass).

          I'd expect both the superclasses and interfaces of a class would be
          loaded using the class loader of the class.

          This problem breaks RMI in that the RMI runtime classes are loaded
          via CLASSPATH but needs to get the interfaces of classes that have been
          loaded via classloader.

        Attachments

          Activity

            People

            Assignee:
            tlindholsunw Timothy Lindholm (Inactive)
            Reporter:
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: