Is it possible (is there a neat way) to get the class comment using reflection? I could read the .java file and get the comment but it’s possible there might not be one so if I look for the first instance of /** and then */ I could end up with a method comment.
Please could you avoid code solutions as I want to crack this myself.
The comment is not retained in the class file, you have to go back to the original source to get comments.
If there is information you need at runtime, it should be stored in an annotation(s) This can be accessible at runtime.