[3305] in java-interest
Java Compiler
daemon@ATHENA.MIT.EDU (Steve V. Yalovitser)
Mon Nov 6 23:44:28 1995
From: "Steve V. Yalovitser" <root@cyberpunk.com>
To: java-interest@java.sun.com
Date: Mon, 6 Nov 1995 21:50:54 +0800 (EST)
Hiya All,
I am hacking the java compiler (in beta) to accept standard ByteArrayStreams
as input and output. The output side is trivial. I am having problems with
theinput side. It seems that the way BatchEnvironment is setup in the compiler
(and the Environment part of the parser) is to associate an env with a file
instance. If I overload this behavior and feed both the environment and parser a
ByteArrayInputStream things go fine until I compile. However the SourceClass
(which does the actual compile) wants to cast the associated environment object
(gotten through Object>>getSource I guess) to File. This gives an invalid
class cast exception. So my question is, given the non-existence of documentation
on any of these classes.. what is the best way to take an inputstream and
generate byte-codes? Thanks in advance.
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com