Migrating a method with generics (spring-batch StepBuilder#chunk) #6016
Replies: 2 comments 4 replies
-
|
I can't see if you're passing any classpathFromResources entry (or similar) here to compile the inputs; If you're considering a contribution feel free to open a draft early, as that's easier to execute and provide a fix on. 🙏🏻 |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
openrewrite/rewrite-spring#781 failed when I created it (demonstrating this issue), but it seems like a code change somewhere fixed this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to move to Spring-batch 5.2 and need to move codebases from
StepBuilder#<I, O>chunk(int)toStepBuilder#<I, O>chunk(int, PlatformTransactionManagerand do something similar fortasklet.I have the following tests. The tasklet recipe works, the chunk one does not. It doesn't even get past initial type validation of the before-code snippet. Am I doing something obviously wrong? The before code compiles. When I turned off type validation in the test, I noticed it (unsurprisingly) didn't pass a
UsesMethod-based precondition becausecompilationUtnil.getTypesInUse().getUsedMethods()doesn't returnchunk(just the constructor). In tasklet case, that call does returntasklet.I have not been able to craft a stand-alone, easy reproducer. It doesn't feel like a spring-batch bugs, so didn't want to add this to
rewrite-spring.Beta Was this translation helpful? Give feedback.
All reactions