-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Apply generic definitions wherever applicable #577
Conversation
8e87337
to
8cc0a87
Compare
@@ -6,18 +6,24 @@ | |||
|
|||
public interface W32APIOptions extends StdCallLibrary { | |||
/** Standard options to use the unicode version of a w32 API. */ | |||
Map UNICODE_OPTIONS = Collections.unmodifiableMap(new HashMap() { | |||
Map<Object, Object> UNICODE_OPTIONS = Collections.unmodifiableMap(new HashMap<Object, Object>() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Options maps are always Map<String,Object>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right - don't know why I thought otherwise. Fixed and pushed updated files.
8cc0a87
to
0466f33
Compare
Strange failure since the core classes project (jna) succeeds, and it does reference Memory and Pointer, etc... |
I don't understand why it fails - I added (locally on my computer) an echo control message and the classpath seems in order:
The reference jna.jar exists and contains the Memory.class compiled code in it, so I don't understand why the compiler complains that it cannot find the symbol. I am at a loss as to why it fails to locate these symbols (and I have tried a lot of different things I know about ANT and JAVAC to no avail) - any help will be greatly appreciated... |
0b9c7a3
to
1ca2d4c
Compare
1ca2d4c
to
81908ed
Compare
Figured it out - trivial mistake - did not notice that I inadvertently removed some import(s) in the failing classes. Fixed and re-pushed - hopefully now everything will be OK... |
Seems that now everything is quiet - please review and see if OK to merge |
Apply generic definitions wherever applicable
Motivation: Since version 0.0.42.Final the connection from an android client was not working anymore, caused by a QuicClosedChannelException. After inspecting the changes I found that 885a18a introduced the bug. Modifications: The call to Quiche.memoryAddress used the capacity of the wrong buffer. The bug only appeared on Android because on most other platforms the buf.hasMemoryAddress() is true, and the len parameter is not used therefore. Result: Make netty-incubator-codec-quic work on Android again
Make the code at least 1.5 compatible so as to detect trivial errors during compile phas