PEPItem cannot be extended

hi,

the abstract org.jivesoftware.smackx.packet.PEPItem class seems to be seemingly un-extendable, due to a couple of default abstract methods. here is a snippet of the class:

  • @author Jeff Williams
    */
    public abstract class PEPItem implements PacketExtension {

    String id;
    abstract String getNode();
    abstract String getItemDetailsXML();

    /**

    • Creates a new PEPItem.

    */
    public PEPItem(String id) {
    super();
    this.id = id;
    }
    … etc

I was trying to write a UserLocation class ( btw, should I write that myself ? ) that extended PEPItem, but Eclipse won’t let me.

your help will be appreciated.

thanks in advance

luca iacono

I had the same problem, you need to make the abstract methods public in PEPItem, recompile smackx. Follow up by making your override methods also public.

u can simply put ur extension of PEPItem in the package org.jivesoftware.smackx.packet and u wont get any problems with the visibility of the abstract methods.

greez

Any chance of getting this fixed?