Build: #768 was successful Changes by Florian Schmaus <flo@geekplace.eu>
Code commits
Smack (master)
-
Florian Schmaus <flo@geekplace.eu> 525f27abf12c4e399bef3be53015108efab4302b
Merge branch '4.4'
-
Florian Schmaus <flo@geekplace.eu> 64d3e804a796466fabb582494d65389a0d1e167f m
Merge pull request #427 from Flowdalic/elements
Add XmppElementUtil.castOrThrow() -
Florian Schmaus <flo@geekplace.eu> 1ebe8b030928556b133a058398e158da2c1ae03d m
Merge pull request #422 from Flowdalic/drop-sm-state-on-clean-shutdown
[tcp] Drop Stream Management state on clean shutdown -
Florian Schmaus <flo@geekplace.eu> b09cd0605322d27367371f066d15275f5c0b05d5 m
[core] Use XmppElementUtil.castOrThrow() in StanzaView.getExtension(Class)
This means that users get now exceptions with helpful error messages
instead of the dreaded ClassCastException, like
java.lang.ClassCastException: org.jivesoftware.smack.packet.StandardExtensionElement cannot be cast to org.jivesoftware.smackx.mam.element.MamElements$MamResultExtension
at
when StanzaView.getExtension(Class) is used to retrieve the extension. -
Florian Schmaus <flo@geekplace.eu> d06e9499e86f8f7273d144e18a0953f76dd90b1d m
[core] Add XmppElementUtil.castOrThrow(ExtensionElement, Class)
This method throws an IllegalStateException if the provided extension
element is not of the expected type and hints users towards potential
causes. -
Florian Schmaus <flo@geekplace.eu> 99297e5a765c23caaa69d1ab4a5c4b025b55f69a m
[mam] Improve MamResultExtension: use MessageView in from() and add QNAME
-
Florian Schmaus <flo@geekplace.eu> 1aab0b8aac197147f81b9c3731da847cbd3f152e m
[core] Add cache to XmppElementUtil.getQNameFor(Class)
-
Florian Schmaus <flo@geekplace.eu> cf4c9725b7eed3edc6a5c835504eb4093f2d2008 m
[core] Add ProviderManager.getExtensionProvider(QName)
-
Florian Schmaus <flo@geekplace.eu> 49ebe8c58719ce2fb7a830595d6c17f0b4ac7f75 m
[tcp] Drop Stream Management state on clean shutdown
We previously only set the SM session ID to zero, but that is not
enough. On a clean shutdown, i.e. where we send a </stream> close tag,
we also have to nullify the unacknowledgedStanzas queue.