multithreading - Java Reflection and thread-safety -
i've got methods reflect class, e.g.:
type.getmethods() method.getannotation(annotationclass) method.getparametertypes() method.getparameterannotations()[paramindex]; method.getparametertypes()[paramindex];
the application multi-threaded. safe call these methods without locking in place?
it safe because don't change anything.
Comments
Post a Comment