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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: