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

methods in URLConnection should not be throwing IllegalAccessError

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.1.4
    • core-libs
    • None
    • beta
    • sparc
    • solaris_2.6

      Several methods in URLConnection throws IllegalAccessError to indicate
      that the method is being performed after the connection has already been established. IllegalAccessError is a runtime linkage error thrown to indicate that the program has attempted to access a member for which it does not have access. Clearly, IllegalAccessError has nothing to do with URLs.
      A more appropriate exception to throw is IllegalStateException (a runtime exception introduced in 1.1).

            ywangsunw Yingxian Wang (Inactive)
            rleesunw Rosanna Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: