ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Zakharov (Jira)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-12090) KeyNotFound exception when creating cache from code if value has 'sbyte?' field
Date Wed, 21 Aug 2019 12:25:00 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-12090?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Denis Zakharov updated IGNITE-12090:
------------------------------------
    Description: 
Ignite.NET.

Using 'sbyte?' field for value causes KeyNotFound exception during cache creation (field's
type validation), when Ignite attempts to print type's name into log.
 # {{I don't really understand why .Net's sbyte is considered not directly mappable to java.byte
([https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/JavaTypes.cs#L54)]
? }}{{Also it is not consistent with other indirect mapping (usigned -> signed)}}
 # {{Access to NetToJava dictionary ([https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/JavaTypes.cs#L109])
should be safeguarded (NetToJava doesn't have entries for nullable types)}}
  

{{Code example in attachment}}

  was:
Using 'sbyte?' field for value causes KeyNotFound exception during cache creation (field's
type validation), when Ignite attempts to print type's name into log.
 # {{I don't really understand why .Net's sbyte is considered not directly mappable to java.byte
([https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/JavaTypes.cs#L54)]
? }}{{Also it is not consistent with other indirect mapping (usigned -> signed)}}
 # {{Access to NetToJava dictionary ([https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/JavaTypes.cs#L109])
should be safeguarded (NetToJava doesn't have entries for nullable types)}}
  

{{Code example in attachment}}


> KeyNotFound exception when creating cache from code if value has 'sbyte?' field
> -------------------------------------------------------------------------------
>
>                 Key: IGNITE-12090
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12090
>             Project: Ignite
>          Issue Type: Bug
>          Components: binary
>    Affects Versions: 2.7.5
>            Reporter: Denis Zakharov
>            Priority: Major
>         Attachments: a.cs
>
>
> Ignite.NET.
> Using 'sbyte?' field for value causes KeyNotFound exception during cache creation (field's
type validation), when Ignite attempts to print type's name into log.
>  # {{I don't really understand why .Net's sbyte is considered not directly mappable to
java.byte ([https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/JavaTypes.cs#L54)]
? }}{{Also it is not consistent with other indirect mapping (usigned -> signed)}}
>  # {{Access to NetToJava dictionary ([https://github.com/apache/ignite/blob/56975c266e7019f307bb9da42333a6db4e47365e/modules/platforms/dotnet/Apache.Ignite.Core/Impl/Binary/JavaTypes.cs#L109])
should be safeguarded (NetToJava doesn't have entries for nullable types)}}
>   
> {{Code example in attachment}}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message