I am using java.bean.XMLDecoder to read certain settings into my IDEA plugin. But for some reasons the following produces NULL:
XMLDecoder decoder = new XMLDecoder(new BufferedInputStream(inputStream));
Settings settings = (Settings) decoder.readObject();
// Result is: settings == null !!!
I already checked the inputStream which is set correctly.
This technique works fine in other IDEs (like JDeveloper 10g) or in stand alone applications.
Only in IntelliJ IDEA 4.5 the method call XMLDecoder.readObject produces NULL
Does the IDEA API maybe changes the introspection of classes, so that XMLDecoder is not able to put objects back together ?
Any ideas ?