You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a bug happens in très obscure code, does it still make a sound?
Perhaps the sound of a devo screaming in pain.
Pending PR #3666 removes a number of defects in java.net.
With obscuring shrubbery removed, I spent quite some time trying to convince
myself that the scope_id field in Inet6Address and InterfaceAddress instances returned by NetworkInterface gets passed cleanly from Java-to-C and back again from C-to-Java.
That is, can a, say, Inet6Address obtained from using NetworkInterface to find a
link-local address be used to send using that link? If the prior sentence makes
no sense to you at all, you have lead a good life.
The answer so far is "NO". There appear to be several (probably single digit > 2) places
where the scope_id is not properly set. This does not affect users of IPv6 Global (i.e. normal, visible
to the entire Internet) addresses but it likely to make a particular class of user unhappy.
Besides, it throws SN network code maintainers off their feed.
PS: It is very difficult to exercise, discover, and/or test this case. Difficult beyond the scope of feasible
Continuous Integration tests. One must rely upon code analysis, luck, and manual testing.
Still, there is one user on the SN Discord channel who has discussed using `NetworkInterface`.
They are the kind of person who is likely to get hosed.
The text was updated successfully, but these errors were encountered:
If a bug happens in très obscure code, does it still make a sound?
Perhaps the sound of a devo screaming in pain.
Pending PR #3666 removes a number of defects in
java.net
.With obscuring shrubbery removed, I spent quite some time trying to convince
myself that the scope_id field in
Inet6Address
andInterfaceAddress
instances returned byNetworkInterface
gets passed cleanly from Java-to-C and back again from C-to-Java.That is, can a, say,
Inet6Address
obtained from usingNetworkInterface
to find alink-local address be used to send using that link? If the prior sentence makes
no sense to you at all, you have lead a good life.
The answer so far is "NO". There appear to be several (probably single digit > 2) places
where the scope_id is not properly set. This does not affect users of IPv6 Global (i.e. normal, visible
to the entire Internet) addresses but it likely to make a particular class of user unhappy.
Besides, it throws SN network code maintainers off their feed.
PS: It is very difficult to exercise, discover, and/or test this case. Difficult beyond the scope of feasible
Continuous Integration tests. One must rely upon code analysis, luck, and manual testing.
The text was updated successfully, but these errors were encountered: