harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [contribution] Implementation of extcheck tool
Date Fri, 09 Feb 2007 13:42:25 GMT
Kalpak Gadre wrote:
> Just had some trouble getting Package instance. But sure, will do the same.

You have to ask a ClassLoader for them...


class MyClassLoader extends ClassLoader {
    public MyClassLoader() {
    }
    public Package[] getPackages() {
        return super.getPackages();
    }
}

for (Package pkg : new MyClassLoader().getPackages()) {
    System.out.println(pkg);
}


Regards,
Tim

Mime
View raw message