Hirdetés

Keresés

Új hozzászólás Aktív témák

  • TBG
    senior tag

    Találtam egy ilyet: Bug #6445283

    Ez a jelenség ami nálam is van:

    "Progress monitor goes to 100% at 2GB, then back to 0%, stays at 0% until 4GB is reached, then goes from 0% to 100% at 6 GB, etc. User has no idea how long entire file will take or may think process is "hung" after 2GB."

    Van egy workaround, viszont nem értem mit kellene csinálni:

    "CUSTOMER SUBMITTED WORKAROUND :
    I've changed the ProgressMonitorInputStream class to "scale" the progress to 32 bits (so ProgressMonitor can use it) after obtaining the file size using FileChannel.size() if the input parameter to ProgressMonitorInputStream constructor is instanceof FileInputStream."

    Nem elég részletes a workaround. Belenyúlt a gyári osztályba vagy csak egy @Override-t használt?

    Szerk:

    http://developer.classpath.org/doc/javax/swing/ProgressMonitorInputStream-source.html

    Elvileg egy extend elég lenne, csak a ProgessMonitor ugyancsak int-et vár és nem long-ot. :(
    76-93

    Szóval azt is extendálni kellene...

Új hozzászólás Aktív témák