You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexandr Shapkin (Jira)" <ji...@apache.org> on 2021/01/05 15:52:00 UTC
[jira] [Updated] (IGNITE-12090) .NET: logger throws KeyNotFound on
creating cache with nullable 'sbyte?' field
[ https://issues.apache.org/jira/browse/IGNITE-12090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexandr Shapkin updated IGNITE-12090:
--------------------------------------
Summary: .NET: logger throws KeyNotFound on creating cache with nullable 'sbyte?' field (was: .NET logging exception when creating cache with nullable 'sbyte?' field)
> .NET: logger throws KeyNotFound on creating cache with nullable 'sbyte?' field
> ------------------------------------------------------------------------------
>
> Key: IGNITE-12090
> URL: https://issues.apache.org/jira/browse/IGNITE-12090
> Project: Ignite
> Issue Type: Bug
> Components: binary, platforms
> Affects Versions: 2.7.5
> Reporter: Denis Zakharov
> Assignee: Alexandr Shapkin
> Priority: Major
> Labels: .NET
> Attachments: a.cs
>
>
>
> Logger throws KeyNotFound exception if NetToJava[type] doesn't have a _type_ key.
> Looks like we need to replace it with NetToJava[directType].
> {code:java}
> public static void LogIndirectMappingWarning(Type type, ILogger log, string logInfo)
> {
> if (type == null)
> return;
> var directType = GetDirectlyMappedType(type);
> if (directType == type)
> return;
> log.Warn("{0}: Type '{1}' maps to Java type '{2}' using unchecked conversion. " +
> "This may cause issues in SQL queries. " +
> "You can use '{3}' instead to achieve direct mapping.",
> logInfo, type, NetToJava[type], directType);
> }
> {code}
>
> Steps to reproduce:
> Define a QueryEntity with a sbyte? nullable field, try to create a cache. The reproducer is attached.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)