Home Comments

Java uint tests don't test a seq of structs

mdoarmdoar Member Matt DoarOrganization: Consulting ToolsmithsProject: Investigation
Or perhaps I misunderstand the use of structures.

~Matt

Comments

  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    Sorry, but I'm afraid I don't understand the question.
  • mdoarmdoar Member Matt DoarOrganization: Consulting ToolsmithsProject: Investigation
    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
  • marcmarc FloridaAdministrators, ZeroC Staff Marc LaukienOrganization: ZeroC, Inc.Project: The Internet Communications Engine ZeroC Staff
    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 :)
  • mdoarmdoar Member Matt DoarOrganization: Consulting ToolsmithsProject: Investigation
    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
Sign In or Register to comment.