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

jshell tool: shortcut var does not import its type

XMLWordPrintable

    • b145
    • Not verified

      ImageIO.read(new File("..."))

      Applying the *v shortcut gives:

      java.awt.image.BufferedImage varname = ImageIO.read(new File("..."))

      The more natural thing would be to import BufferedImage.

      Proposed new shortcut *V

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

              Created:
              Updated:
              Resolved: