Type mismatch: cannot convert from Instant to DateTime.
Noriyuki TAKEI
ntakei at sios.com
Wed Mar 6 12:33:36 EST 2019
Hi
Maybe stupid question :)
I'm developing module that enhancing the function of shibboleth as an
external Java project with testbed.
At first, testbed worked fine.However, the following error occurred
suddenly in many projects,for example,idp-attribute-filter-impl,idp-core
and so on.
Type mismatch: cannot convert from Instant to DateTime.
I'll show you the one(net.shibboleth.idp.installer.
TestMetadataGenerator.java) of many codes at which the above-mentioned
error occurs.
final DateTime validUntil = entity.getValidUntil();
I guess the type of validUntil is DateType and the type of the return value
form getValidUntil method is Instant.
Probably, I found this error in almost all the codes where DateTime
converts Instant.
My environment is as follows:
- OS
Mac OS Mojave.
- Java Version:
$ java -version
java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20190307/95b1f05c/attachment.html>
More information about the dev
mailing list