Duplicate :
|
If public classes in non-exported packages are instantiated with Class::newInstance then an illegal reflective access warning is not printed. This is an oversight in the original implementation, no issue with Constructor newInstance.
|