Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A parent and child classes having private property fields with the same name fail to be synchronized #32

Open
rbi opened this issue Feb 26, 2015 · 0 comments

Comments

@rbi
Copy link
Contributor

rbi commented Feb 26, 2015

HOW TO REPRODUCE

  • given the following classes:
class A {
  private StringProperty propertySameName = new SimpleStringProperty();
}

class B extends A {
  private StringProperty propertySameName = new SimpleStringProperty();
}
  • Synchronize objects of them and change the value of both private Properties.

WHAT HAPPENED

  • An Exception is thrown:
de.saxsys.synchronizefx.core.exceptions.ObjectToIdMappingException: An object with the id [d44b9948-98db-4b53-935e-5156fe46ab71] was expected to be known but it was not.  In most cases this means that synchronism with other peers has been lost.
    at de.saxsys.synchronizefx.core.metamodel.WeakObjectRegistry.getByIdOrFail(WeakObjectRegistry.java:75)
    at de.saxsys.synchronizefx.core.metamodel.CommandListExecutor.execute(CommandListExecutor.java:175)
    at de.saxsys.synchronizefx.core.metamodel.CommandListExecutor.execute(CommandListExecutor.java:103)
    at de.saxsys.synchronizefx.core.metamodel.MetaModel.execute(MetaModel.java:199)
    at de.saxsys.synchronizefx.core.metamodel.MetaModel.access$000(MetaModel.java:33)
    at de.saxsys.synchronizefx.core.metamodel.MetaModel$2.run(MetaModel.java:120)
    at de.saxsys.synchronizefx.core.metamodel.ModelWalkingSynchronizer.doWhenModelWalkerFinished(ModelWalkingSynchronizer.java:137)
    at de.saxsys.synchronizefx.core.metamodel.MetaModel.execute(MetaModel.java:116)
    at de.saxsys.synchronizefx.core.clientserver.DomainModelClient.recive(DomainModelClient.java:90)
    at de.saxsys.synchronizefx.netty.base.client.InboundCommandHandlerClient.channelRead0(InboundCommandHandlerClient.java:48)
    at de.saxsys.synchronizefx.netty.base.client.InboundCommandHandlerClient.channelRead0(InboundCommandHandlerClient.java:33)
    at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
    ...

WHAT SHOULD HAPPEN

  • No exception is thrown
  • both properties have the correct value.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant