Re: Replicating the class lookup process
Mark Raynsford <[email protected]> Mon, 23 Oct 2017 12:19:08 +0000
| Newsgroups | gmane.comp.java.objectweb.asm |
|---|---|
| Organization | io7m.com |
| Message-ID | <[email protected]> |
On 2017-10-22T18:40:21 +0000 Mark Raynsford <[email protected]> wrote: > > My actual question: Do I need to implement the whole lookup process > myself? It seems that in order to do so correctly, I'd need to > duplicate at least some of the semantics that the VM implements > (building a module graph, etc). It seems like it could also get a bit > platform-specific: If I need to look at platform classes, then I'd need > to be able to locate them on the user's system, and that could get > unpleasant very quickly. Actually, let me reduce the scope of my original question: Given a platform class name such as "java/io/InputStream", is it possible to retrieve a ClassNode for the named class in a portable (read: non-platform-specific, non-JVM-specific) manner? I obviously can't assume that the named class will be loaded in the VM, or even if it was, that it would be accessible from the module I'm executing in. Implementing this for non-platform classes is easy, as I just have the user specify their own module path and I load the modules myself. -- Mark Raynsford | http://www.io7m.com
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEgWja4isV0+3HIsI9DxW30G+oDLgFAlnt3jwACgkQDxW30G+o DLhyqw//d5sCovGUGYpGzvAwOJVYSf/rDmZY8RFhMNXvCxGh3yz0TEbJ+RXmyaKK /CLyyWG/1kIaylXutyH0J8vv0ojYROqAlmOvQ7X73NtQKWyOOQI3Yq2CxrpYN1Fq lw9SsNNHpgeUhZUHCfXU2HTmQv5lEwENSz5GAXQM8we/HkjUjZxOr1UMeqz4IvOI ZppvcdNMVxQPgAV5xjoGbFSCKMb409oDIjOBwiL3VkyD3DvkAHPA1kYVAzzHQsae 3dpFY/REpiGrth/HQ0cDWokgHo08F19X2aw1g4UD6h1lVf40tySYBuOCGULav4Gs ZCPAneBl2o6fOAiTS9stXGHQ5QqbiTP8mdqw0Ra3TATOb2czAvINJA486kTlAwRV vCskdeVfUHsUEYIwHfqbP5cyxBgc26Saj6bzo6b1g9rFhNzqRW8r4ko9TFM4Caqr YRQyM0zfLnhcf4E7Kv29mRX7m8pI+bQnCriuUdMP8vAyB/swy07ZehIeZbQTuYbx /NOL/JZzBvErxVilgCCjPbgIj4dNnAErxkr4SMKT9ipTweLNxdMqdDFk+nsi+qrD IruzEUE1I835E06d4SOyDPqoSv1WMCfpHolToePYccb5KmlNnxBCH2M/q2UodGKb 2NkPHPh8EjCKCzAACb6MDsVYmRTYv3JYr5Eyxp4GrF24ssSouH0= =CASP -----END PGP SIGNATURE-----