vendredi 3 novembre 2017

what is the alternative for dynamic class loading in java?

I'm using reflection to load the class at run-time but sonar rules are pointing it as vulnerability attack i'm thinking to use ByteBuddy,can bytebuddy library help me on this?

ClassLoader classLoader = MyClass.class.getClassLoader();
Class<?> classsName = classLoader.loadClass(className);





Aucun commentaire:

Enregistrer un commentaire