Re: How to get list of classes from a package

2009-02-16 Thread Ulf Zibis
Martin, thanks for your additional hints. I'm aware, that my solution is not suitable for general cases, but it solves my needs perfectly. For my enhancement of charsets I need to compare my new coders against the legacy coders from rt.jar + charsets.jar from JDK 6 for testing equality. -Ul

Re: How to get list of classes from a package

2009-02-16 Thread Martin Buchholz
Ulf, This kind of solution is likely to be brittle. For example, you appear to assume that the code you are looking for is in a jar file. But it might not be; in jdk "developer mode", they are likely to be in a "classes" directory. Martin On Mon, Feb 16, 2009 at 13:30, Ulf Zibis wrote: > Am 16

Re: How to get list of classes from a package

2009-02-16 Thread Ulf Zibis
Am 16.02.2009 21:35, Rémi Forax schrieb: Tom Hawtin a écrit : David M. Lloyd wrote: On 02/16/2009 10:22 AM, Ulf Zibis wrote: can anybody tell me, how I could get al list or enumeration of the classes, which belong to a package. I can't see any appropriate method in java.lang.Package :-( T

Re: How to get list of classes from a package

2009-02-16 Thread Rémi Forax
Tom Hawtin a écrit : David M. Lloyd wrote: On 02/16/2009 10:22 AM, Ulf Zibis wrote: can anybody tell me, how I could get al list or enumeration of the classes, which belong to a package. I can't see any appropriate method in java.lang.Package :-( This isn't really possible at run time, sin

Re: How to get list of classes from a package

2009-02-16 Thread Tom Hawtin
David M. Lloyd wrote: On 02/16/2009 10:22 AM, Ulf Zibis wrote: can anybody tell me, how I could get al list or enumeration of the classes, which belong to a package. I can't see any appropriate method in java.lang.Package :-( This isn't really possible at run time, since one doesn't know wh

Re: How to get list of classes from a package

2009-02-16 Thread David M. Lloyd
On 02/16/2009 10:22 AM, Ulf Zibis wrote: Hi all, can anybody tell me, how I could get al list or enumeration of the classes, which belong to a package. I can't see any appropriate method in java.lang.Package :-( This isn't really possible at run time, since one doesn't know whether a class