Serialization validateObject not getting called.

Discussion in 'Java' started by Roedy Green, Apr 7, 2004.

  1. Roedy Green

    Roedy Green Guest

    I have a class I serialize.

    It implements ObjectInputValidation with an validateObject.

    I think this used to work fine (though I am not 100% sure). Now I am
    using JDK 1.4.2_03.

    Now it is not calling the validateObject method. Am I supposed to
    invoke this myself?


    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Apr 7, 2004
    #1
    1. Advertising

  2. Roedy Green

    Roedy Green Guest

    On Wed, 07 Apr 2004 04:42:49 GMT, Roedy Green
    <> wrote or quoted :

    >Now it is not calling the validateObject method. Am I supposed to
    >invoke this myself?


    I got it to work again by using readObject instead.
    --
    Canadian Mind Products, Roedy Green.
    Coaching, problem solving, economical contract programming.
    See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
     
    Roedy Green, Apr 7, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    8
    Views:
    2,291
    deadsea
    Jan 2, 2005
  2. Apricot
    Replies:
    4
    Views:
    556
    velthuijsen
    Apr 16, 2004
  3. Replies:
    3
    Views:
    1,070
  4. Dimitri Ognibene
    Replies:
    4
    Views:
    808
    Dimitri Ognibene
    Sep 2, 2006
  5. Ramunas Urbonas
    Replies:
    1
    Views:
    421
    Dino Chiesa [Microsoft]
    Jul 27, 2004
Loading...

Share This Page