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

The spec of return type of URL.getContent() is too vague

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1.3
    • core-libs
    • x86
    • windows_95

      Name: tb29552 Date: 09/19/97


      According to the current spec. URL.getContent() returns
      "Returns the contents of this URL." I think this description
      is too vague. For example:

         For gif files, Sun's JDK returns an instance of ImageFileSource, while
         Microsoft's JDK returns an instance of Image class. While MS's implementation
         is closer to the desired effect then Sun's neither is wrong, since both return
         the file content in one form or another.

      This behavior results in a Java code which is:
         1) specific to a particular JDK implementation.
         2) not easily ported to a new platform.
         3) not guarantied to work on an arbitrary platform.

      A new specification should be devised that assures consistent results from the
      URL.getContent() call.
      company - UCSD , email - ###@###.###
      ======================================================================

            Unassigned Unassigned
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: