I wrote a custom Java Annotation Processor that if applied to a class, generates a class with name of annotated class fields.
While executing, I can find name of annotated class (like "com.package.Person") with (DeclaredType)annotatedElement.asType() but Unable to get Class<com.package.Person> to find its fields.
I tried to load class with its full name with Class.forName(com.package.Person) that throws an exception ClassNotFoundException: com.package.Person
How can I get Class<Person>?