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

ZipEntry contains wasteful "temporary storage" fields

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • b53
    • generic
    • generic

      ZipEntry contains these fields:

          int flag; // bit flags
          int version; // version needed to extract
          long offset; // offset of loc header

      which are essentially unused, and used as temporary storage by
      other classes in the same package. This is very poor programming
      practice, and that space should be recovered and the uses of those
      fields should be removed. All the fields should be private instead
      of package-private, as well.

      More difficult is to save the unconditional initialization of comment
      and extra by using a lazy loading technique. Because ZipEntry's are
      mutable and not always obtained from a ZipFile, this might
      require some trickery.

      ###@###.### 2005-04-08 19:14:08 GMT

            martin Martin Buchholz
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: