Issues with implementing JDOMExternalizable

Well, this is baffling. I have some classes that need to implement the com.intellij.openapi.util.JDOMExternalizable interface.

However, in IDEA, when I implement the interface, the IDE thinks that the following class does not implement the interface:

import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.WriteExternalException;
import org.jdom.Element;
public class Test implements JDOMExternalizable{
public void readExternal(Element element)
throws InvalidDataException {
public void writeExternal(Element element)
throws WriteExternalException {

What's even more mysterious is that these classes which show errors in the IDE actually compile (when I compile them from IDEA). However, I can't actually run from IDEA because of a ClassNotFound issue when I use the classes which implement this interface.

Now for my module libraries, I'm using the JDOM jar which comes with IDEA (i.e. the one that ships in the lib directory). I don't have any CLASSPATH defined, nor do I have any other JDOM jars that exist on my computer.

I'm not really sure what the heck is going on here, but it has me completely baffled.

Any help would be appreciated.

1 comment
Comment actions Permalink

I wonder if you have open api library in your module settings.


Please sign in to leave a comment.