IllegalAccessError of StanazaEvent

Issue #2 closed
Marcel Vo created an issue

If I trie to add a MessageListener to a xmppSession i get the following Exception:

Eception in thread "main" java.lang.IllegalAccessError: tried to access class org.xmpp.stanza.StanzaEvent from class XMPPTest

Here is the Code:

xmppSession.addMessageListener(arg0 -> System.out.println(arg0.getMessage()));

I fixed that problem by making the StanzaEvent Class public.

Can you please fix that problem?

Comments (6)

  1. Christian Schudt repo owner

    Yes, I recognized it, too, some time ago. I thought it was a bug in Java 8, because if you don't use lambda expressions, it works. I will investigate into this issue.

  2. Christian Schudt repo owner

    As an Oracle guy told me, this is a bug in Java 8. Oracle has a simple test case from me, maybe they can fix it.

  3. Log in to comment