I am new to Eclipse and Java.
I am wondering if the following error is an Eclipses compiler or my installation.
I defined an open class inside an open class to determine the return type for the service method.
public class ServiceThing {
public class ReturnType {...}
public ReturnType serviceMethod (...) {...}
...
}
In the class where I call the service method, I set the ReturnType type to store the default message:
ReturnType returnType = new ReturnType(...);
When I try to create this, I get the following errors:
Building workspace: Errors occurred during assembly. Runtime error builder 'Java Builder' in project 'XXXX.android'. java.lang.ArrayIndexOutOfBoundsException
Save failed: Save failure; java.lang.NullPointerException
I found out the required syntax:
ServiceThing serviceThing = ...;
ReturnType returnType = serviceThing.new ReturnType(...);
However, the compiler should not throw a nullpointerException.