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

javac: Allow in/output repositories (incl. databases) and in/out "hook" classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.4.0
    • tools
    • generic
    • generic



      Name: krC82822 Date: 08/20/2001


      orig synopsis: "Redirect the input and output of .java and .class files"

      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

      javac reads .java files from the file system and writes .class files to the file
      system. It would be useful to read and write directly to and from other
      repositories [including databases].

      In particular, it would be nice to be able to write .class files directly
      to .jar files [instead of creating .jar files from the compliation results].
      This would simplify and expedite some builds.

      Supporting other repositories such as a relational database
      would provide direct/additional support for writing development tools.

      Pre and post filtering to/from files would be possible.

      Such features could be supported by passing an inputter and and outputter class
      to 'javac' - similar to the way doclets specialize the behaviour of javadoc -
      though the class would be much simpler than doclets:

      interface JavacLet {
        Reader getReader (String className);
        Writer getWriter (String className);
      }
      (Review ID: 130297)
      ======================================================================

            gafter Neal Gafter (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: