Details

    • Last commented by a User:
      true

      Description

      The described feature works on 3.2.1.RELEASE, fails on 3.2.2.RELEASE and 3.2.3.RELEASE.

      Trying to change object instance passed to service defined as @Async :

      @Service
      public class PopulateService {
      
          private final List<Person> persons;
          private final AsyncService asyncService;
      
          @Autowired
          public PopulateService(AsyncService asyncService) {
              persons = new ArrayList<Person>();
              this.asyncService = asyncService;
          }
      
          public void populatePersons(int numberOfPersons) {
              asyncService.populatePersons(persons, numberOfPersons);
          }
      
          public List<Person> getPersons() {
              return persons;
          }
      }
      
      @Service
      public class AsyncService {
      
          @Async
          public void populatePersons(List<Person> persons, int numberOfPersons) {
              for (int i = 0; i < numberOfPersons; i++) {
                  persons.add(new Person("first " + i, "last " + i));
              }
          }
      } 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                dmakariev Dimitar Makariev
                Last updater:
                Spring Issuemaster
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  39 weeks, 5 days ago