#1375 Serialization type/slot reads too far

Akcelisto Sat 8 Jan 2011

Test failed:

class TestSerializationType : Test{
  Void testSerializationType(){
    obj := ValType()
    sb := StrBuf(){ out.writeObj(obj).close }
    echo(sb)
    echo(sb.toStr.in.readObj)
  }
}

@Serializable
class ValType{
  Type type := ValType#
  Slot slot := ValType#slot
}

Output:

-- Run:  tests::TestSerializationType.testSerializationType...
tests::ValType
{
type=tests::ValType#
slot=tests::ValType#slot
}

TEST FAILED
sys::IOErr: Expected type signature, not '=' [Line 4]
...

Expected: test success.

brian Sat 8 Jan 2011

Promoted to ticket #1375 and assigned to brian

brian Mon 28 Feb 2011

Renamed from **[bug] Type serialization ** to **Serialization type/slot reads too far**

brian Mon 28 Feb 2011

Ticket resolved in 1.0.58

Login or Signup to reply.