Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-3892

BinaryWriterExImpl.doWriteClass is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.7
    • 1.8
    • binary
    • None

    Description

      Here is the problematic code:

      if (desc.registered())
          out.unsafeWriteInt(desc.typeId());
      else {
          out.unsafeWriteInt(GridBinaryMarshaller.UNREGISTERED_TYPE_ID);
      
          doWriteString(val.getClass().getName());
      }
      

      If class is not registered, val.getClass().getName() is written. But val is already a Class instance, so it should be val.getName().

      Need to create a test and fix.

      Attachments

        Activity

          People

            vkulichenko Valentin Kulichenko
            vkulichenko Valentin Kulichenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: