Le 08/09/2010 02:03, Dibyendu Majumdar a écrit :
On Sep 7, 6:01 pm, "Rodrigo B. de Oliveira"<[email protected]>
wrote:
<[email protected]> wrote:
...
[snip]
The initial problem is how to load classes referred to in the source
code, i.e., how to handle imports. Do I need to use something like ASM
to locate and load references to classes, or is it possible to use a
custom class loader to do this? What is the general approach followed
by other implementations?
[/snip]
The approach I took with boojay was to demand jars and directories
containing class files to be explicitly passed to the compiler which
then uses ASM to load class files from the referenced locations as
needed.
Thanks - does ASM provide facilities to load a class from a jar or
a classpath? Or do you need to expand the jars and explicitly search
for/
read the class file?
ClassLoader.get/*System*/ResourceAsStream() returns an InputStream,
ASM's ClassReader consumes that InputStream.
Regards
Dibyendu
Rémi
--
You received this message because you are subscribed to the Google Groups "JVM
Languages" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/jvm-languages?hl=en.