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

JShell API: add setIdGenerator and setTempVariableNameGenerator

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9-repo-kulla
    • None
    • tools
    • None

      Since we can’t reasonably hide/transform the generated name, the only approach I could see for aligning temp var names with tool-ids is to add a callback to the API to generate the temp var name. Maybe:

        void setTempVariableNameGenerator(BiFunction<Integer, Integer, String> generator);

      Update: the id is visible to StackTraceElement.getFileName() queries so must also be internal and thus configurable.

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: