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

URLConnection.setRequestProperty throws IllegalAccessError

    XMLWordPrintable

Details

    • b15
    • generic
    • generic
    • Verified

    Description

      A DESCRIPTION OF THE PROBLEM :
      The method URLConnection.setRequestProperty(String, String) throws an IllegalAccessError. This appears to be an ancient remnant which was apparently missed by JDK-4082758.

      The expected exception type is an IllegalStateException.


      ---------- BEGIN SOURCE ----------
      // On Windows:
      URLConnection c = new URL("file:///C:/").openConnection()
      c.connect()
      c.setRequestProperty("test", "test")
      ---------- END SOURCE ----------

      Attachments

        Issue Links

          Activity

            People

              jpai Jaikiran Pai
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: