hey,
i have a sequential access file with objects given to me by my instructor. he has asked that we "duplicate" the class he created. the only fields in the class are a couple of String(s),an int, and 3 accessor methods. when i try to read the from the stream i get the exception above. now he insists that i don't have to set the serialVersionUID in my version of his class, which i have found will work, but that i spend time trying to mimic the constructor and method signatures he used originally and that this will 'compute' to the same serialVersionUID. my question(s): is he correct? and what are the possible causes/reasons for an InvalidClassException? any salient help will... thanks
nikita
i have a sequential access file with objects given to me by my instructor. he has asked that we "duplicate" the class he created. the only fields in the class are a couple of String(s),an int, and 3 accessor methods. when i try to read the from the stream i get the exception above. now he insists that i don't have to set the serialVersionUID in my version of his class, which i have found will work, but that i spend time trying to mimic the constructor and method signatures he used originally and that this will 'compute' to the same serialVersionUID. my question(s): is he correct? and what are the possible causes/reasons for an InvalidClassException? any salient help will... thanks
nikita