Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

List classes in package

843853Jan 2 2003 — edited Nov 12 2008
Is there a JSR for listing packages within a class?

For example, instead of writing an algorithm to disect "java.class.path" list all the files and stick them in a map, the ClassLoader could do this as classes are created. Such a document would also suggest functions simmilar to String [] getClassnames() and Class [] getClasses() in java.lang.Package.

To me this sticks out as a sore thumb/missing feature in Java's reflection capabilities.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 10 2008
Added on Jan 2 2003
31 comments
1,205 views