Open rpau opened 1 year ago
Hi @jbessels ; we just pushed a new snapshot version of the Maven plugin with a potential fix. Would be so kind as to give it another try with version 4.46.0-SNAPSHOT
?
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>4.46.0-SNAPSHOT</version>
</plugin>
</plugins>
</build>
Given that it's been non deterministic, it's been rather hard to pin down. We did see this being more prevalent with a larger number of submodules, so we're hoping it was the linked ordering issue. Would you mind running a few times even if it works the first time?
@timtebeek Copy/paste from Slack so the info does not get lost.
TL;DR behavior not changed.
Did some testing. Ran it two times with all 96 recipes. Run 1 no change -> good. 2nd run it hang. Even after 30 minutes it still hung. I've noticed and reported this before. With 4.45 and say 25+ runs with all 96 recipes it blocked 2 times iirc. That was when I re tested it all and outcommented certain <T> or <S>
generic is used in the variable. In the Slack OP the class definition and the private fields are mentioned.
These are:
public abstract class CRUDFormPage<T extends CRUDObject<T>> extends ApplicationPage {
private final GenericTable<T, String> itemView; <-- explicitly set but removed sometimes
public class SortableCollectionDataProvider<T extends Serializable> extends SortableDataProvider<T, String> {
private final IModel<? extends Collection<T>> collection; <-- explicitly set but removed sometimes
public abstract class TimetableTrip<S extends TimetableStop> implements Comparable<TimetableTrip<S>> {
private final List<S> stops; <-- explicitly set but removed sometimes
Background https://rewriteoss.slack.com/archives/C01A843MWG5/p1683439528216859
We need to reproduce the issue we need to create a multimodule repository and apply
RemoveUnusedPrivateFields
multiple times.Relates to #1753