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

URLConnection.guessContentTypeFromName() should be public

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • beta
    • generic
    • generic



      Name: krC82822 Date: 01/11/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

      The static method URLConnection.guessContentTypeFromName() is declared
      protected, but it ought to be public, since it doesn't do anything that
      only subclasses should be able to do. In fact, it's pretty easy to do
      a workaround by just reimplementing what it does (presumably just
      calls getFileNameMap().getContentTypeFor()) wherever one would have called
      the original method.

      It's not a huge deal, but it'd be nice to not have to circumlocute.

      (Review ID: 114936)
      ======================================================================

            jccollet Jean-Christophe Collet (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: