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

JShell: readAndReportExecutionResult() in the ExecutionControl does not actually throw ClassNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • tools
    • generic
    • generic

      Studying the jshell sources I noticed that the method readAndReportExecutionResult()
      in the ExecutionControl class does not actually throw ClassNotFoundException as it is
      declared.
      The reason I’m writing about it is that this throws ClassNotFoundException confused
      me when I was trying to understand how the interaction between the ExecutionControl and
      the RemoteAgent is being carried out.
      In my opinion - a developer who just started to dive into sources - such subtle things
      can lead the understanding in a wrong way. I would remove it.
      Does anyone can comment on this?

      Thank you.

      --
      Best regards,
      Grigory Ptashko

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

              Created:
              Updated:
              Resolved: