Skip to content

Conversation

@NayanKaushik25
Copy link
Contributor

Solves Issue #327 by implementing a demo for JFR Event Streaming.

Features Implemented:

  • Creating a Recording Stream
  • Event Enabling
  • Registering an Event Handler
  • Extraction of Values Entered into a field using onFlush

Copy link
Owner

@AloisSeckar AloisSeckar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NayanKaushik25 and thank you for your contribution.

Unfortunatelly, like this it cannot be accepted, because the new demo file won't get loaded in src/main/java/org/javademos/init/Java14DemoLoader.java and the info method won't find required data for JEP 349 in src/main/resources/JDK14Info.json.

Please, check the recent PRs or refer to the contribution guide, and update your PR accordingly, so it can be accepted and merged

@AloisSeckar AloisSeckar added the changes requested The PR was checked and feedback provided. Changes must be done in order to get it accepted. label Oct 31, 2025
@NayanKaushik25
Copy link
Contributor Author

@AloisSeckar I made the changes. Please take a look.

import org.javademos.java14.jep366.ParallelScavengeGCCombinationDemo;
import org.javademos.java14.jep368.TextBlockSecondPreviewDemo;
import org.javademos.java14.jep370.ForeignMemoryAccessDemo;
import org.javademos.java14.jep349.JFREventStreamingDemo;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for updates. To keep the consistency across the project, please also re-arrange the import to be ordered by the JEP number (so it would appear at line 10)

demos.put(366, new ParallelScavengeGCCombinationDemo());
demos.put(368, new TextBlockSecondPreviewDemo());
demos.put(370, new ForeignMemoryAccessDemo());
demos.put(349, new JFREventStreamingDemo());
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here, please maintain the order by the number ascending

"link": true,
"code": false
},
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and also here in the JSON file - records should be ordered to be able to navigate through them quickly

@NayanKaushik25
Copy link
Contributor Author

Ok. I reordered them.

@AloisSeckar
Copy link
Owner

Ok. I reordered them.

@NayanKaushik25 the import is still on line 19 - should be also moved to line 10

@AloisSeckar AloisSeckar added hacktoberfest Counts as submission for Hacktoberfest 2025 and removed changes requested The PR was checked and feedback provided. Changes must be done in order to get it accepted. labels Oct 31, 2025
@NayanKaushik25
Copy link
Contributor Author

My apologies. I've reordered it now.

@AloisSeckar AloisSeckar merged commit 135d2df into AloisSeckar:master Oct 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest Counts as submission for Hacktoberfest 2025

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants