I'm instantiating an instance of a Class based on what's in a properties file, like this:
display = (Display)Class.forName( Client.mainProps.getProperty( "display.class" ) ).newInstance();
The editor is marking this line red, with the error message:
Inconvertible types; cannot cast '?' to 'mypackage.Display'
But it compiles and runs ok, just annoying. Why is the editor complaining?