Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.0.1, 4.1.0.M3
    • Fix Version/s: 4.1.0, 4.1.0.RC1
    • Component/s: Build
    • Labels:
      None
    • Environment:
      OSX 10.13.3
      Open JDK 10.0.2
      Oracle JDK 10.0.2
      Gradle 4.10 (using the wrapper)

      Description

      Building the project with Java 10 fails with the following exceptions:

      > Task :spring-batch-core:test
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/Users/mbenhassine/.gradle/caches/modules-2/files-2.1/org.springframework/spring-core/5.0.0.RELEASE/3a9bb910e8943b5ef59b193a1621daba46456ca9/spring-core-5.0.0.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
      WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      
      org.springframework.batch.core.configuration.annotation.TransactionManagerConfigurationWithoutBatchConfigurerTests > classMethod FAILED
          org.mockito.exceptions.base.MockitoException
              Caused by: java.lang.UnsupportedOperationException
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.configuration.annotation.TransactionManagerConfigurationWithBatchConfigurerTests > classMethod FAILED
          org.mockito.exceptions.base.MockitoException
              Caused by: java.lang.UnsupportedOperationException
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.configuration.support.AutomaticJobRegistrarTests > testStartStopRunningWithCallback FAILED
          org.mockito.exceptions.base.MockitoException at AutomaticJobRegistrarTests.java:196
              Caused by: java.lang.UnsupportedOperationException at AutomaticJobRegistrarTests.java:196
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testCreateJobExecutionStatusUnknown FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testSaveOrUpdateInvalidJobExecution FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testSaveStepExecutionSetsLastUpdated FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testCreateJobExecutionAlreadyComplete FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testIsJobInstanceFalse FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testSaveStepExecutions FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testIsJobInstanceTrue FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testUpdateValidJobExecution FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testSaveNullStepExecutions FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testSaveOrUpdateStepExecutionException FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testUpdateStepExecutionSetsLastUpdated FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testCreateJobExecutionAlreadyRunning FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.SimpleJobRepositoryTests > testInterrupted FAILED
          org.mockito.exceptions.base.MockitoException at SimpleJobRepositoryTests.java:93
              Caused by: java.lang.UnsupportedOperationException at SimpleJobRepositoryTests.java:93
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testOracleLobHandler FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testCustomJdbcOperations FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testCreateRepository FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testCustomSerializer FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testInvalidDatabaseType FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testCustomLobType FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testInvalidCustomLobType FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testDefaultJdbcOperations FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testMissingDataSource FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testSetTransactionAttributesForCreateMethod FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testNoDatabaseType FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testMissingTransactionManager FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > tesDefaultSerializer FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testCustomLobHandler FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.repository.support.JobRepositoryFactoryBeanTests > testTransactionAttributesForCreateMethod FAILED
          org.mockito.exceptions.base.MockitoException at JobRepositoryFactoryBeanTests.java:73
              Caused by: java.lang.UnsupportedOperationException at JobRepositoryFactoryBeanTests.java:73
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testGetNextJobParametersNoPreviousExecution FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testMissingJobExplorer FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testOrderedTypes FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testAddJobParameter FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testPropreties FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testGetNextJobParametersFirstRun FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testCopy FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testAddingExistingJobParameters FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testGetNextJobParametersNoIncrementer FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testGetNextJobParameters FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testToJobRuntimeParameters FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      org.springframework.batch.core.JobParametersBuilderTests > testNonIdentifyingParameters FAILED
          org.mockito.exceptions.base.MockitoException at JobParametersBuilderTests.java:61
              Caused by: java.lang.UnsupportedOperationException at JobParametersBuilderTests.java:61
                  Caused by: java.lang.IllegalArgumentException
      
      ...
      
      1892 tests completed, 234 failed, 7 skipped
      
      > Task :spring-batch-core:test FAILED
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mbenhassine Mahmoud Ben Hassine
                Reporter:
                mbenhassine Mahmoud Ben Hassine
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: