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

(spec) The code in java.util.Inflater and java.util.Deflater doesn't compile

XMLWordPrintable

    • b61
    • x86
    • windows_2000

      Name: nt126004 Date: 05/07/2003


      FULL PRODUCT VERSION :
      Documentation issue, not runtime

      FULL OS VERSION :
      this report has nothing to do with OS

      A DESCRIPTION OF THE PROBLEM :
      A code example was added to java.util.zip.Deflater and java.util.zip.Inflater, which was desparately needed. However, the code doesn't even compile.
      There are checked Exceptions which are not caught in the example.

      Actually, if memory serves there were three uncaught exceptions. Imagine some java newbie who maybe hasn't met try/catch blocks in her course wanting to
      use compression.

      Anyhow, scan the Advanced Language Topics forum for an extended discussion on this bit of java. Or check the bug base. Or both.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      See the docs. Copy the code. Stick it into a main() and try to compile.

      (These code examples were badly needed. They were not in 1.4.0, added in 1.4.1.)


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 184612)
      ======================================================================

            bristor Dave Bristor (Inactive)
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: