For many framework development, we need to instantiate class by reading qualified class names from a config file.
There are different introspection strategies, and dedicated libraries (like Objenesis) geared towards it.
However, for classes with no default constructor (overloaded) I believe no introspection works if we do not know the signature of the overloaded constructor. The non standard approach is to use sun.misc.Unsafe class to allocate. This is what I understand. Is that a correct understanding?
Then there's a problem with that, as super classes are not instantiated by using Unsafe. But I thought Unsafe is the closest to whatever C code 'new' operator invokes, at least a part of it.
So the question is, do we have Java ways of instantiating a object the way new operator does, by some form of introspection when the only information we have is the qualified name of the class (and of course that is present somewhere in the classpath!)