Giter Site home page Giter Site logo

Comments (5)

joelkoz avatar joelkoz commented on August 27, 2024

There is definitely something going on here, and I don't think it is necessarily Eclipse specific. I just opened a separate issue #13 re: the serialization/deserialization not working for me, and while trying to track down the problem, I found myself in the debugger looking at this exact same class. Remembering seeing this issue, I copied @Enlade 's code in place, and suddenly things started working. Also, my "gradle test" now passes. @benbarkay are you sure that the unit tests pass with the other MavlinkFieldInfo code in place? I haven't studied this code closely to see what the difference is, but I can tell you that this version makes all my other problems go away.

from mavlink.

joelkoz avatar joelkoz commented on August 27, 2024

If this above code works in the Maven and Gradle environments then maybe make that change so that it also works without much trouble in the Eclipse only IDE environment. Obviously it is better to distribute the code by Maven, but in some offline development environments Maven or Gradle are difficult to manage, so it would be good for the code to also work within the Eclipse only IDE environment (particularly if it is easy enough to make it so).

I might add that I downloaded the 1.0.9 and 1.0.10 .jar files from Maven Central, and those FAILED also in my environment. I have no idea if there was some bug in the lambda version that has been fixed in a subsequent version of the JRE, or if there is a bug in the OS X that doesn't exist in Windows, but what I CAN say is my problems were NOT fixed by using the "official" builds in Maven Central. My environment would only work correctly if I built the code manually using Gradle and the above fix proposed by @Enlade

from mavlink.

benbarkay avatar benbarkay commented on August 27, 2024

I've found this which is interesting:
https://stackoverflow.com/questions/34750664/annotations-containing-lambda-expressions-in-java-8

When I'm back home, I'll fiddle a little more. I suspect that if I refactor this comparator out of the annotation it'll all work as expected.

Which Java version do you run?

from mavlink.

joelkoz avatar joelkoz commented on August 27, 2024

@benbarkay - That sure sounds like the issue, though the bug report link says it was resolved in Oct 2016. The JRE on my Mac is build 1.8.0_91-b14 dated July 4 of this year.

Not sure of the date of the JRE on my Raspberry Pi, but the code also failed on that machine, and I built the image for that only 3 weeks ago, so I'm sure I have the latest JRE that is available. I suspect that if this does in fact pass the test on your machine, then its a bug in the JRE that still exists, and people are going to run into this issue one way or another. My vote would be to replace the code regardless, assuming the alternative code passes the test on your machine also.

from mavlink.

benbarkay avatar benbarkay commented on August 27, 2024

@Enlade is this still relevant in 1.0.12?

from mavlink.

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.