Skip to content

(Firefox 150.0 on Fedora Linux) dev.java embedded playground examples with "Run" and "Reset" buttons are no longer runnable after clicking "Reset" #252

@willy-b

Description

@willy-b

Hello dev.java team!

Thanks for all the content.

After making edits in some of the embedded Java playground widgets in some of the dev.java articles (e.g the 2nd example in the Teeing example of Creating your Own Collector, https://dev.java/learn/api/streams/custom-collectors/#teeing or any other widgets on that page with "Run" and "Reset" buttons),
if I click reset, the playground widget is no longer runnable and a page refresh is required:

Image

The error message is

Error ⮕ The Java Playground returned an unexpected response format.

Steps to Reproduce:

  • visit the " Creating your Own Collector" page of the Streams tutorial series at https://dev.java/learn/api/streams/custom-collectors/#teeing
  • scroll to the 2nd runnable embedded Java Playground example within this "Combining the Results of Two Collectors with the Teeing Collector" subsection of Creating your Own Collector, the one with "Run" and "Reset" buttons
  • click "Run" and observe it compiles and runs the example as many times as clicked
  • click "Reset" and observe any changes are reverted (no changes are necessary to reproduce)
  • click "Run" and observe the error message instead of output if "Reset" has been clicked

Thanks very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions