Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Java 10 [BATCH-2756] #848

Closed
spring-issuemaster opened this issue Sep 12, 2018 · 0 comments
Closed

Support for Java 10 [BATCH-2756] #848

spring-issuemaster opened this issue Sep 12, 2018 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Sep 12, 2018

Mahmoud Ben Hassine opened BATCH-2756 and commented

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

Affects: 4.0.1, 4.1.0.M3

Issue Links:

Referenced from: pull request #639

Backported to: 4.1.0.RC1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.