Here is some info that may assist you you understand the differences and issues you may encounter migrating from older java versions.
ℹ All SAP applications provided with EP 7.50 are compatible with Java 8.
You may want to inspect and fix any custom application that you have to make it Java 8 compliant.
Sample issues that you may encounter in your java code related to Java version:
1. Dependencies changes:
With Java 8, when using a class, the interfaces it implements must be on the compile classpath as well. With Java 7, it was enough that the interface was on the classpath while compiling the used class.
2. Deprecated and removed APIs:
assert / assertTrue deprecation:
response.assert(ok," : default value is not null","1002001"); --> deprecated and will not compile with java 8
response.assertTrue(ok," : default value is not null","1002001"); --> will compile correctly.
PreparedStatement interface has new methods, so if you have class implementing it, you should add new methods:
class PlStmt implements PreparedStatement
{..
.
public void closeOnCompletion() throws SQLException{....}
public boolean isCloseOnCompletion() throws SQLException{....}
public long executeLargeUpdate() throws SQLException{...}
public void setObject(int parameterIndex, Object x, SQLType targetSqlType,int scaleOrLength) throws SQLException{...}
public void setObject(int parameterIndex, Object x, SQLType targetSqlType) throws SQLException{....}
...
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
44 | |
25 | |
17 | |
15 | |
11 | |
7 | |
7 | |
7 | |
7 | |
6 |