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

No way to AOT class with interface or parent whose fully qualified name doesn't contain a period

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Declined
    • Affects versions: Release 1.6
    • Fix versions: None
    • Labels:

      Description

      I'm trying to interop with some java code. I have a class files in a jar that contains an interface called `Player` which I can't modify. The issue is that a bare name like this automatically has java.lang prepended to it by the gen-class macro. My ns looks something like

      (ns PlayerAI
      (:gen-class :implements [Player]))

      which throws an error

      java.lang.ClassNotFoundException: java.lang.Player, compiling:(PlayerAI.clj:1:1)

      There is no way to avoid this based on what I see in the source here.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: