#2219 - Compile error with ZonedDateTime and query beans - type argument java.time.ZonedDateTime is not within bounds of type-variable D

This commit is contained in:
Robin Bygrave
2021-04-19 17:04:57 +12:00
parent 65b282a056
commit 9d54b264ad
5 changed files with 77 additions and 18 deletions
@@ -25,10 +25,9 @@ class PropertyTypeMap {
*/
private final PropertyType dbJsonType = new PropertyType("PJson");
private Map<String,PropertyType> map = new HashMap<>();
private final Map<String,PropertyType> map = new HashMap<>();
PropertyTypeMap() {
map.put("boolean", new PropertyType("PBoolean"));
map.put("short", new PropertyType("PShort"));
map.put("int", new PropertyType("PInteger"));
@@ -57,7 +56,6 @@ class PropertyTypeMap {
map.put("java.lang.Class<?>", new PropertyType("PClass"));
addType(File.class);
addType(InetAddress.class);
map.put(URI.class.getName(), new PropertyType("PUri"));
map.put(URL.class.getName(), new PropertyType("PUrl"));
map.put(UUID.class.getName(), new PropertyType("PUuid"));
@@ -73,7 +71,6 @@ class PropertyTypeMap {
}
private void addJava8Types() {
try {
Class.forName("java.time.Instant");
} catch (ClassNotFoundException e) {
@@ -93,6 +90,7 @@ class PropertyTypeMap {
addType(java.time.YearMonth.class);
addType(java.time.ZoneId.class);
addType(java.time.ZoneOffset.class);
addType(java.time.ZonedDateTime.class);
}
private void addJodaTypes() {