netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Provide hints for conversion to Virtual thread executor when thread pools are used

Open MegJayan opened this issue 3 years ago • 2 comments

Provide hints for converting thread pools(newFixedThreadPool, newCachedThreadPool) to virtual thread pool executor. When ThreadFactory is passed as argument to , then only a hint suggestion for converting the thread pool to newThreadPerTaskExecutor is provided. Code is not directly rewritten in this case.

MegJayan avatar Sep 07 '22 05:09 MegJayan

VTs are great and I am all for using new features and having code transformations which help with migration but maybe not enabled by default

Emphasis mine, but yes, agree, IMO should not be enabled by default, for now at least.

neilcsmith-net avatar Sep 29 '22 10:09 neilcsmith-net

Based on the comments we have now changed to give hints for the new feature of VT thats available. Instead of converting the code. So no more automatic conversion.Hope this clarifies.

arvindaprameya avatar Sep 29 '22 11:09 arvindaprameya

@singh-akhilesh please make sure there's a milestone set when merging, thanks!

neilcsmith-net avatar Oct 18 '22 10:10 neilcsmith-net