Skip to content

Java as a Subscriber crash in receive data with IDL Nested #4660

Answered by mitza-oci
hendraprawira asked this question in Q&A
Discussion options

You must be logged in to vote

Some more specifics here:
struct Message in IDL turns in to public class Message in Java.
Message in IDL contains a member that's a DPT value. It's not a "pointer to" or a "reference to" a DPT value.
Java has no way to represent this data model, so it turns into a pointer which may be null. Since IDL doesn't have a concept of null here, values of Message which contain a null pointer may not be passed into IDL-generated code like this mdr.take_next_sample(mh, sih);

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mitza-oci
Comment options

Answer selected by hendraprawira
@yuan-ge
Comment options

@mitza-oci
Comment options

@yuan-ge
Comment options

@hendraprawira
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #4658 on May 22, 2024 18:53.