I am working on a legacy application which is still running on JDK5. As part of our new requirement we need to update it to JDK 8. As per my understanding since Java is backward compatible, this should have worked. When I compiled with JDK 8 , the build was successful. But while launching ,I got the following error :
Error creating bean with name 'AuthorisationDialogController' defined in class path resource [com/some/application/conf/dispense/dispense-controllers.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.some.application.dispense.context.DispenseContextImpl] to required type [com.some.application.admin.AdminContext] for property 'context']
My dependencies looks like the following:
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring</artifactId>
<version>1.2.7</version>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymock</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.easymock</groupId>
<artifactId>easymockclassextension</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>2.1_3</version>
</dependency>
<dependency>
<groupId>com.micros</groupId>
<artifactId>aaaa</artifactId>
<version>${externalVendor}</version>
</dependency>
<dependency>
<groupId>com.micros</groupId>
<artifactId>bbb</artifactId>
<version>${externalVendor}</version>
</dependency>
<dependency>
<groupId>com.micros</groupId>
<artifactId>ccc</artifactId>
<version>${externalVendor}</version>
</dependency>
<dependency>
<groupId>com.micros</groupId>
<artifactId>ddd</artifactId>
<version>${externalVendor}</version>
</dependency>
<dependency>
<groupId>com.micros</groupId>
<artifactId>eeee</artifactId>
<version>${externalVendor}</version>
</dependency>
</dependencies>
I googled and found out that Spring1.2.6 might not support JDK8. Please can anyone help me what all things I need to take care here. We also have dependency on some external vendor which is built on top of Java5.