Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-458

DataOutputStream is not closed in BinaryEncoder#encodeXXX() methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.7
    • None
    • None

    Description

      In ./gora-accumulo/src/main/java/org/apache/gora/accumulo/encoders/BinaryEncoder.java :

            DataOutputStream dos = new DataOutputStream(new FixedByteArrayOutputStream(ret));
            dos.writeShort(s);
            return ret;
      

      dos should be closed before returning.

      Attachments

        Activity

          People

            renato2099 Renato Javier MarroquĂ­n Mogrovejo
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: