[midPoint-git] [Evolveum/midpoint] 06815a: MID-6319: fix of generic casting for JDK-8 around ...
virgo47
noreply at github.com
Thu Jul 16 08:49:56 CEST 2020
Branch: refs/heads/master
Home: https://github.com/Evolveum/midpoint
Commit: 06815ab23d881979ef81a697cb868b48e5620bba
https://github.com/Evolveum/midpoint/commit/06815ab23d881979ef81a697cb868b48e5620bba
Author: Richard Richter <richard.richter at evolveum.com>
Date: 2020-07-16 (Thu, 16 Jul 2020)
Changed paths:
M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/pure/SqlQueryContext.java
Log Message:
-----------
MID-6319: fix of generic casting for JDK-8 around path.getClass() call
The base problem is that object.getClass() of Class<X> returns Class<?>.
When I used it as argument and later cast the result, it worked fine on
JDK 11 (and IDEA with Java 8 language level didn't indicate error).
But compiler failed with: jdk 8 incompatible types:
inferred type does not conform to equality constraint(s)
But if I cast that getClass call back to Class<X> everything was fine.
More information about the midPoint-svn
mailing list