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

MLet: could be improved to load a native lib

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 7
    • Component/s: core-svc
    • Subcomponent:
    • Resolved In Build:
      b43
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Verified

      Description

      To copy a lib file to local one, the MLet reads and writes one byte by one byte, it is possible to read and write once time whole file like:

      int i = is.available();
      while (i>0) {
      int[] b = new int[i];
      is.read(b);
      fileOutput.write(b);
      i = is.available();
      }

      Another problem is that the MLet may create a directory to save a native lib file, the lib file will be removed when exiting normally, but the directory will not be removed.

        Attachments

          Activity

            People

            Assignee:
            sjiang Shanliang Jiang (Inactive)
            Reporter:
            sjiang Shanliang Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: