RFC 6122 redefines the XMPP address format. The existing implementation of org.xmpp.packet.JID is based on the older RFC 3920. It should be updated, but remain backwards compatible (e.g: add @Deprecated annotations to old getters/setters, replace them by new ones).