powered by Jive Software

Problem with PEPItem class


I’m trying to create a class that extends org.jivesoftware.smackx.packet.PEPItem but instead of overriding getNode() and getItemDetailsXML() eclipse throws the next error:

“This class must implement the inherited abstract method PEPItem.getNode(), but cannot override it since it is not visible from ItemInfo. Either make the type abstract or make the inherited method visible”.

If i write the methods with @Override eclipse throws the next error:

“The method getItemDetailsXML() of type ItemInfo must override or implement a supertype method”.

And if I write the methods without the @Override throws:

“The method MyClass.getItemDetailsXML() does not override the inherited method from PEPItem since it is private to a different package”

Finally I figured it out i just needed to add the “public” statement to the PEPItem class getNode() and getItemDetailsXML() methods and then compile it with ant for what I found really helpfull this link http://svn.igniterealtime.org/svn/repos/smack/tags/smack_1_0_1/build/README.html

If anyone needs i let you the smackx.jar file with the modifyed statements as an attach document
smackx.jar (666908 Bytes)

1 Like