Giter VIP home page Giter VIP logo

Comments (5)

GoorMoon avatar GoorMoon commented on June 15, 2024

EndOfStream is workaround (I don't like him) about bug exist in OrientDB version less than 2.0.
Response is different if storage type is memory or plocal.

from orientdb-net.binary.

poindextrose avatar poindextrose commented on June 15, 2024

That explains why the tests were changed from memory to plocal. I tried the tests with memory. I'll see what I can do for reproducing the logic in Mono.

from orientdb-net.binary.

GoorMoon avatar GoorMoon commented on June 15, 2024

Hey i don't have Mono, but seeking on internet and found following article about NonPublic Fields and inheritance

http://www.netdataobjects.com/Portal/NDORunsUnderMono/tabid/94/Default.aspx

  1. If you search for private fields using Reflection, Microsoft .NET automatically adds the Flag DeclaredOnly to the BindingFlag NonPublic. That way, if you use NonPublic, you get only the private fields of the current type, not the inherited private fields of the base classes -- which is the case in Mono. To make the code working equal in Microsoft .NET and Mono, you always have to add the flag DeclaredOnly, if you use NonPublic. If you want to get private fields of the base types of your types, you have to iterate through the whole inheritance chain.

from orientdb-net.binary.

poindextrose avatar poindextrose commented on June 15, 2024

Thanks for the information. It looks like Mono doesn't have the private fields that EndOfStream() is looking for. I notice that for the OrientDB 2.0 (which appears to use ProtocolVersion 28), the problem that EndOfStream() solves is not present (on my machine). I've updated the pull request to skip the EndOfStream() test for ProtocolVersion 28 or greater. Hopefully this is also valid on .NET.

from orientdb-net.binary.

GoorMoon avatar GoorMoon commented on June 15, 2024

Yes this is valid on version 2.0 protocol is same for both storage types.

from orientdb-net.binary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.