Kirill Tkalenko created IGNITE-12324:
----------------------------------------
Summary: improper message in BinaryObjectException is printed when
accessing fieldOrder method binary field with binary object of unregistered type
Key: IGNITE-12324
URL: https://issues.apache.org/jira/browse/IGNITE-12324
Project: Ignite
Issue Type: Improvement
Reporter: Kirill Tkalenko
Assignee: Kirill Tkalenko
Fix For: 2.8
ScenarioScenario1. Create `BinaryObject` instance with `time` field of type
`TimeValue`.2. Extract `BinaryField` `time` from binary object3. Modify binary
object internal array so that it would reference non existing binary type4.
Invoke `fieldOrder` (or `value`) of binary field passing modified binary
object5. Expect that `BinaryObjectException` is thrown5.1 Expect that message
contains information about expected and actual binary type id, expected type
name, field id, field name, expected field type.5.2. Expect that for actual
type name message contains 'null'
Actual: \{noformat}class org.apache.ignite.binary.BinaryObjectException: Failed
to get binary type details [typeId=-1291121110] at
org.apache.ignite.internal.binary.BinaryTypeProxy.target(BinaryTypeProxy.java:116)
at
org.apache.ignite.internal.binary.BinaryTypeProxy.typeName(BinaryTypeProxy.java:75)
at
org.apache.ignite.internal.binary.BinaryFieldImpl.fieldOrder(BinaryFieldImpl.java:291)
at
org.apache.ignite.internal.binary.BinaryFieldImpl.value(BinaryFieldImpl.java:109)\{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)