Archived

This forum has been archived. Please start a new discussion on GitHub.

Java uint tests don't test a seq of structs

Or perhaps I misunderstand the use of structures.

~Matt

Comments

  • marc
    marc Florida
    Sorry, but I'm afraid I don't understand the question.
  • The file IceJ-1.2.0/test/Ice/operations/Test.ice contains

    struct Structure
    {
    MyClass* p;
    MyEnum e;
    AnotherStruct s;
    };

    and a number of sequences of other types, but not

    sequence<Structure> StructS;

    ~Matt
  • marc
    marc Florida
    Ah, now I understand. Well, we can't test every possible combination in the test suite. But rest assured that it works fine, we use sequences of structs in many other applications :)
  • Well, actually, one can write code generators to create the .ice and .java files to test many more combinations than are currently tested. This detected some *very* subtle bugs for me once. It's also a helpful way to stress test the slice tools with very large files.

    Anyway, I greatly enjoyed reading the ICE protocol chapter of the documentation last night - this looks like the right way to go. I'll be using it instead of CORBA in the future. Good luck!

    ~Matt