Skip to content

Notebook hangs when a static method signature is redefined #64

Description

@andrus

This may be an underlying JShell issue (or not), but I just noticed the following behavior with 1.0-a4 and Java 21:

  1. Start with this cell:
static void a(String a) {
    display(a);
}
  1. Execute it, call the function in some other cell... So far so good
  2. Go back to the first cell and change the static method signature, and execute the cell:
static void a(Integer a) {
    display(a.toString());
}

At this point the notebook hangs forever and has to be restarted to get back to a working state:

Image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions