[cp-patches] Fix for Class.getSimpleName()

Tom Tromey tromey at redhat.com
Sun Apr 20 20:56:26 UTC 2008

Sebastian> GCJ's implementation seems not to handle inner and local classes.


Sebastian> I don't have a good overview of the classpath architecture,
Sebastian> yet. Maybe it would be better to remove the method
Sebastian> getSimpleName() in VMClass.java and implement it directly
Sebastian> in java.lang.Class?

Yes, if it can be written using other parts of the defined API, then I
think that would be preferable.

In general it is best to only put something in VMClass if there is a
need -- either when it can't be done using the public API, or when
there is a performance issue with the straightforward approach.


More information about the Classpath-patches mailing list