Support sun.misc.Signal handlers (#1221)

This commit is contained in:
Michiel Borkent 2022-03-26 22:45:49 +01:00 committed by GitHub
parent 72ae663842
commit 81a1fd4c86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View file

@ -404,6 +404,8 @@
java.util.zip.ZipEntry
java.util.zip.ZipException
java.util.zip.ZipFile
sun.misc.Signal
sun.misc.SignalHandler
~(symbol "[B")
~(symbol "[I")
~(symbol "[Ljava.lang.Object;")

View file

@ -72,7 +72,12 @@
["javax.net.ssl.HostnameVerifier" #{}]
(proxy [javax.net.ssl.HostnameVerifier] []
(verify [host-name session] ((method-or-bust methods 'verify) this host-name session))))))
(verify [host-name session] ((method-or-bust methods 'verify) this host-name session)))
["sun.misc.SignalHandler" #{}]
(proxy [sun.misc.SignalHandler] []
(handle [sig]
((method-or-bust methods 'handle) this sig))))))
(defn class-sym [c] (symbol (class-name c)))

View file

@ -183,4 +183,7 @@
resolveAlias [[this sym]]
resolveVar [[this sym]]}
sun.misc.SignalHandler
{handle [[this signal]]}
}))