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

Erroneous IllegalAccessException on non-public classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.3
    • core-libs
    • sparc
    • solaris_2.5.1



      Name: paC48320 Date: 09/30/97


      I have a non public class (Implementation) that adheres to a public
      interface (interf). I try to invoke through core reflection a method on an
      instance of Implementation, method defined in Interf:
      get(myClassObject).
      This results in an IllegalAccessException. Had I handcoded it, it would
      have worked (think of Vector.elements() and then calling hasMoreElements()
      on it: non-public class, public method defined in interface, no exception)
      Note that it seemed to work fine when the function was
      get(java.lang.String) and not get(myClassObject), everything else being
      equal...
      company - Dassault Systemes , email - ###@###.###
      ======================================================================

            apalanissunw Anand Palaniswamy (Inactive)
            pallenba Peter Allenbach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: