mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user