PacketParserUtils.parseSASLFailure throws an exception if there is a 'text' element inside the 'failure'

According to XMPP doc it’s possible to have the OPTIONAL descriptive text in inside ‘failure’ element

but smack throws an exception

for example, here is an example of ‘failure’ which causes an exception in asmack

D/SMACK﹕ RCV (0): Password not verified

12-11 12:37:06.311 1709-1856/com.ben.snippets W/SASLError﹕ Could not transform string ‘text’ to SASLError

java.lang.IllegalArgumentException: text is not a constant in org.jivesoftware.smack.sasl.SASLError

at java.lang.Enum.valueOf(

at org.jivesoftware.smack.sasl.SASLError.valueOf(

at org.jivesoftware.smack.sasl.SASLError.fromString(

at org.jivesoftware.smack.sasl.SASLMechanism$SASLFailure.( :357)

at org.jivesoftware.smack.util.PacketParserUtils.parseSASLFailure(PacketParserUtil

at org.jivesoftware.smack.tcp.PacketReader.parsePackets(

at org.jivesoftware.smack.tcp.PacketReader.access$000(

at org.jivesoftware.smack.tcp.PacketReader$

I use asmack 4.0.6

This has been fixed a while ago in 4.1. I’m not sure if I’m going to backport the fix to 4.0.

Where I can find this fix?
have just downloaded the latest 4.1 alpha snapshot and this method looks the same there

It doesn’t look the same to me /jivesoftware/smack/util/PacketParserUti…

ok, thanks
I used this link