Menu

#1 Patch for ProgressDialog to work on JRE 1.6

open
nobody
None
5
2012-12-13
2007-10-25
No

JSqlTool 1.1 (fix version) doesn't work properly on Java 6 (JRE 1.6). The main problem I've encountered is in the ProgressDialog class: it attempts to reuse a private Thread in a way that is not compatible with JRE 1.6. This patch fixes the startProgress() and startProgressNoClose() methods to work properly for JRE 1.6.

Discussion

  • Stephen Schaub

    Stephen Schaub - 2007-10-25

    ProgressDialog patch

     
  • Stephen Schaub

    Stephen Schaub - 2007-10-25

    Logged In: YES
    user_id=953665
    Originator: YES

    I didn't do a good job of describing the symptoms fixed by this class. When the user attempts to connect to a database (running in a JRE 1.6 VM), the progress bar dialog opens and does not close. The application does not populate the Schema window with a list of schemas / tables. Internally, an IllegalStateException is thrown when the private Thread's start() method is called, but it is not caught and reported in the UI.

     
  • Robert Bordelon

    Robert Bordelon - 2007-12-14

    Logged In: YES
    user_id=440250
    Originator: NO

    Apparently this problem also appears on recent builds of JRE 1.5. I encountered it on 1.5.0 build 12. This patch fixed that, too.