Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4065325

Why not a class to represent the javac compiler ?

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.3
    • tools
    • None
    • sparc
    • solaris_2.5.1



      Name: rlT66838 Date: 07/17/97


      Dear sir,

      I'm currently involved in dynamic creation of Java classes.
      What I do is writing the source code of the dynamically-created class in a file, then calling the javac compiler via the exec method of class Runtime.
      This leads to 2 problems :
      - I must be able to write somewhere on some hard disk (not even considering packages problems).
      - I cannot call the javac compiler in a portable way.

      One thing i would be very happy to find is a class that represents the javac compiler.
      One of its methods would read the source code in an InputStream object, then return
      the bytecode in 1 or several byte[]

      To say it abruptly, Java needs more of the features of SmallTalk.
      Having a Sheduler class would be fine, too.

      Thanks a lot for taking the time to consider this feature request.


      ======================================================================

            dstoutamsunw David Stoutamire (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: