Uploaded image for project: 'Clojure'
  1. CLJ-1311

gen-interface uses DynamicClassLoader when not compiling, gen-class doesn't

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: Release 1.5
    • Fix versions: None

      Description

      The documentation for both gen-class and gen-interface says: "When not compiling, does nothing."

      However, gen-interface does the right thing and uses DynamicClassLoader.defineClass when not compiling. This means e.g. that gen-interface works from the repl.

      I don't see a reason why gen-class couldn't do the same. Obviously, the docstrings would need to be updated too.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: