Comments (5)
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.
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.
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.
@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.
@Enlade is this still relevant in 1.0.12?
from mavlink.
Related Issues (20)
- No such file or directory #include "common/mavlink.h" HOT 4
- Battery voltage list causes a crash when adding it to the builder HOT 5
- newbie to Mavlink HOT 1
- unrecognized field type java.util.ArrayList HOT 1
- how to generate custom messages from xml
- How to send MAV_CMD?
- issue - MavlinkSerializationException - Message does not have a builder HOT 8
- Connect Demo for mav_server HOT 5
- Connection refused:connect HOT 1
- Unable to send Status text (Java) HOT 1
- How to send mission file or how to check vehicle status? HOT 1
- newbie question , sending values in java
- system not showing any result HOT 9
- Unable to send messages to Ardupilot SITL HOT 3
- I need to send and receive messages in java mavlink, but I can't. Can you send sample code please? HOT 1
- Implement MavCmd: MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE HOT 1
- Newb question: Parsing incoming mavlink2 messages HOT 2
- 我收到一串byte[]的消息
- Unable to get any kind of data from UDP connection. HOT 1
- MAVLink XML change to allow exponentiation operator in bitmask flag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mavlink.