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

misleading online spec for IllegalAccessException

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.0
    • 1.1, 1.2.0, 1.3.0
    • docs
    • 1.3
    • generic
    • generic



      Name: dkC59003 Date: 06/25/99



      Online documentation shipped with JDK releases 1.1.x and 1.2.x contains
      the following incorrect statement for the IllegalAccessException:

          Thrown when an application tries to load in a class through its string name using:

             * The forName method in class Class.
             * The findSystemClass method in class ClassLoader.
             * The loadClass method in class ClassLoader.

          but the currently executing method does not have access to the definition of the
          specified class, because the class is not public and in another package.
          
      Indeed, none of the mentioned methods throw IllegalAccessException.

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

      Name: dkC59003 Date: 06/25/99



      So, online doc for IllegalAccessException contradicts to docs for the methods:

          Class.forName()
          ClassLoader.findSystemClass()
          ClassLoader.loadClass()

      because online documentation for these methods does not state that they
      may throw IllegalAccessException.


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

            shommel Scott Hommel (Inactive)
            dkhukhrosunw Dmitry Khukhro (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: