langtools/src/jdk.jshell/share/classes/jdk/jshell/Unit.java
changeset 37751 77e7bb904a13
parent 37644 33cf53901cac
child 38535 4a25025e0b0d
equal deleted inserted replaced
37750:d213951c811b 37751:77e7bb904a13
   438         return paren >= 0
   438         return paren >= 0
   439                 ? signature.substring(0, paren + 1)
   439                 ? signature.substring(0, paren + 1)
   440                 : msi.parameterTypes();
   440                 : msi.parameterTypes();
   441     }
   441     }
   442 
   442 
   443     SnippetEvent event(String value, Exception exception) {
   443     SnippetEvent event(String value, JShellException exception) {
   444         boolean wasSignatureChanged = sigChanged();
   444         boolean wasSignatureChanged = sigChanged();
   445         state.debug(DBG_EVNT, "Snippet: %s id: %s before: %s status: %s sig: %b cause: %s\n",
   445         state.debug(DBG_EVNT, "Snippet: %s id: %s before: %s status: %s sig: %b cause: %s\n",
   446                 si, si.id(), prevStatus, si.status(), wasSignatureChanged, causalSnippet);
   446                 si, si.id(), prevStatus, si.status(), wasSignatureChanged, causalSnippet);
   447         return new SnippetEvent(si, prevStatus, si.status(),
   447         return new SnippetEvent(si, prevStatus, si.status(),
   448                 wasSignatureChanged, causalSnippet, value, exception);
   448                 wasSignatureChanged, causalSnippet, value, exception);