[rfc] [icedtea-web] Fix EDT hanging on OpenJDK 11

Jiri Vanek jvanek at redhat.com
Wed Sep 26 09:45:56 UTC 2018


Hi!

except nits Mario and MAritn have. Can we please return the debugging paint manager?
Only please drop from those copied class(es?) Icedtea header, and include

/**
  * License unknown.
  * based on  Alexander Potochkin's "Debugging Swing, the final summary"
  * when oracle acquired sun, this blog post was removed, and lives only in copies.
  * most complex was found: 
http://web.archive.org/web/20150523152453/https://weblogs.java.net/blog/alexfromsun/archive/2006/02/debugging_swing.html
*/

Otherwise I'm happy with all changes you agree with Mario. they make made the patch better.


Thank you all.
   J.
On 9/25/18 9:14 PM, Laurent Bourgès wrote:
> Any progress on this review ?
> 
> Le jeu. 13 sept. 2018 à 15:55, Laurent Bourgès <bourges.laurent at gmail.com 
> <mailto:bourges.laurent at gmail.com>> a écrit :
> 
>     Mario,
> 
>     Here is the updated patch:
>     http://cr.openjdk.java.net/~lbourges/itw/patch_EDT.log.4
> 
>     Changes:
>     - added SwingUtils.callOnAppContext() used appropriately
>     - several SwingUtilities.invoke* replaced by SwingUtils.invoke*()
>     - removed 2 debugging EDT classes
> 
>     My answers, below:
> 
> 
>          > I can improve that to defer also the installPanel() method until show() using a new
>         method to queue the getPanel(this) ...
>          > but it could have side-effect ? so I just wrap that call for now.
> 
>         Sure, let's revisit later then.
> 
> 
>     I tried but getPanel() calls SecurityDialog constructors that enqueue operations on
>     ViwableDialog => chicken-egg problem.
>     => installPanel() MUST be called excatly at that place, and cannot be defered.
> 
>          >> Regarding the SwingUtils, I'm not happy about installing those repaint
>          >> managers, although I understand this is for debug only.
>          >
>          >
>          > Ok, I propose to remove the 2 other classes and keep them on my side, if I need to debug
>         it again in the future.
> 
>         Yes, thanks, users can do the same if they need to debug the EDT (as
>         we can do too).
> 
>     Done.
> 
> 
>          > It is not in my patch but in current code base.
>          > Another example: ViwableDialog should be ViewableDialog ?
> 
>         Ops, you are right. If you don't mind fixing this line while we're
>         there, otherwise just let it be and we'll go over another time.
> 
>     I left as is (as I forgot).
> 
> 
>          > OK, I will improve my patch:
>          > - add SwingUtils.callOnAppContext()
>          > - rewrite the installPanel() tricky part
> 
>         Thanks!
> 
>         I don't need another review unless the patch changes substantially (or
>         if you want me to go through your new changes for installPanel), if
>         Martin approves you can push directly (or we'll wait for Jiri if you
>         don't have push rights).
> 
> 
>     I modified few SwingUtilities usage by SwingUtils (tested OK), so you make a diff between .3 vs
>     .4 (small) to have a quick look.
> 
>     As I do not have push rights, please push for me once the patch is approved.
> 
>     Cheers,
>     Laurent
> 


-- 
Jiri Vanek
Senior QE engineer, OpenJDK QE lead, Mgr.
Red Hat Czech
jvanek at redhat.com    M: +420775390109


More information about the distro-pkg-dev mailing list