[rfc][icedtea-web] rememberable dialogues general solution - impl part 1 - safe types returned from getUserResponse

Jiri Vanek jvanek at redhat.com
Wed Jun 3 10:39:37 UTC 2015


hi!

So this is first part.
Tho most nasty and error prone.

It is changing type of securityMEssage.response from Object to regular interface, and is providing 
useful implementations of this interface.

The legacy object was integer at first, and was used to preselect button, and tro return id of 
pressed button. LAter was missuesd and returned yes/no/always/never even later sanbox was added and 
last drop was complex result about shortcuts.

In this patch, there are few wrappers for types of yAnNS, which contains also remember logic. This 
will be fixed in another changeset, and those wrappers will be gone.

Approach of this patch i slightly different, less verbose, with a lot of shared code and different 
typesafety. I hope it is generally better. If somebody found tech-review's solution better, or 
generally have better ideas, pelase let me know.

J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makeTypesOfSecurityDialogMessageReturnValueSafe.patch
Type: text/x-patch
Size: 86928 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20150603/af3c59d6/makeTypesOfSecurityDialogMessageReturnValueSafe-0001.patch>


More information about the distro-pkg-dev mailing list