Skip to content

Conversation

@OlavoAcolita
Copy link
Contributor

Relevant issue: #2192

Fix proposed on issue.

Created a new class (VirtualThreadBuilder) for fixing virtual threads enabled bug on native images for graalVM.

@codecov
Copy link

codecov bot commented Feb 13, 2025

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 0.00%. Comparing base (00ceaff) to head (ec80cfe).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...n/src/main/java/io/javalin/util/ConcurrencyUtil.kt 0.00% 11 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff           @@
##           master   #2361   +/-   ##
======================================
  Coverage    0.00%   0.00%           
======================================
  Files         148     148           
  Lines        4498    4492    -6     
  Branches      513     513           
======================================
+ Misses       4498    4492    -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tipsy
Copy link
Member

tipsy commented Mar 2, 2025

Thanks @OlavoAcolita ! I see Codecov is complaining a bit, I'm not sure how well tested the existing implementation was 🤔

I will try to have a look before next weekend. @dzikoysk I saw you in the emoji-section of the issue, did you check this out yet?

}

open class ReflectiveVirtualThreadBuilder {
class VirtualThreadBuilder {
Copy link
Member

@dzikoysk dzikoysk Mar 2, 2025

Choose a reason for hiding this comment

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

You can convert this class into the object class (singleton) and get rid of the companion object at all. It'll make more sense, also considering that we're not creating a new instance of it.

+ should fix coverage

@dzikoysk
Copy link
Member

dzikoysk commented Mar 2, 2025

@tipsy @OlavoAcolita I've left one comment, despite that I think it's okay

@ratacolita
Copy link

@dzikoysk , we've done as you said.

@ratacolita
Copy link

Hi folks, any update on this? Is there anything else we can assist to get it done?

@dzikoysk
Copy link
Member

I think @tipsy missed that one during the last release 😅 Looks good on my end, any extra concerns @tipsy?

@tipsy
Copy link
Member

tipsy commented Apr 27, 2025

Sorry, just missed it - things have been busy lately!

@tipsy tipsy merged commit 1177ba2 into javalin:master Apr 27, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants