[prev in list] [next in list] [prev in thread] [next in thread]
List: e-lang
Subject: Re: [e-lang] Bug: NetConfig() incompatible with VatTPMgr
From: Mark Miller <erights () gmail ! com>
Date: 2010-01-13 4:59:52
Message-ID: fee0a56d1001122059g76bd2134i43264b3e073cd38e () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Fri, Jan 8, 2010 at 1:56 PM, Kevin Reid <kpreid@mac.com> wrote:
> I tried this and was surprised to find it fail:
>
> ? introducer.setNetConfig(<import:net.vattp.data.makeNetConfig>())
> ? introducer.onTheAir()
> # problem: <NullPointerException>
>
> NetConfig.java:
> public NetConfig() {
> this(ConstList.EmptyList, ConstList.EmptyList, null);
> }
>
>
> VatTPMgr.java:
> ConstList listenPath = netConfig.getListenAddrPath();
> if (0 == listenPath.size()) {
> listenPath = listenPath.with(null);
> }
>
> The ordinary NetConfig construction (NetConfig.make) always puts a
> (possibly empty) ConstList in listenAddrPath. Should the no-args
> constructor do the same thing, or is there an intended semantic
> distinction from having an empty list vs. no list?
>
> Just looked to remind myself. No intended semantics. Looks like a just made
a simple mistake. (When I do intend a variable to possibly hold null, I'm
rather consistent about including an "opt" in the name.) Thanks for figuring
this out.
Big fixed and change committed.
> --
> Kevin Reid <http://switchb.org/kpreid/>
>
>
>
>
> _______________________________________________
> e-lang mailing list
> e-lang@mail.eros-os.org
> http://www.eros-os.org/mailman/listinfo/e-lang
>
--
Text by me above is hereby placed in the public domain
Cheers,
--MarkM
[Attachment #5 (text/html)]
On Fri, Jan 8, 2010 at 1:56 PM, Kevin Reid <span dir="ltr"><<a \
href="mailto:kpreid@mac.com">kpreid@mac.com</a>></span> wrote:<br><div \
class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> I tried this and \
was surprised to find it fail:<br> <br>
? introducer.setNetConfig(<import:net.vattp.data.makeNetConfig>())<br>
? introducer.onTheAir()<br>
# problem: <NullPointerException><br>
<br>
NetConfig.java:<br>
public NetConfig() {<br>
this(ConstList.EmptyList, ConstList.EmptyList, null);<br>
}<br>
<br>
<br>
VatTPMgr.java:<br>
ConstList listenPath = netConfig.getListenAddrPath();<br>
if (0 == listenPath.size()) {<br>
listenPath = listenPath.with(null);<br>
}<br>
<br>
The ordinary NetConfig construction (NetConfig.make) always puts a<br>
(possibly empty) ConstList in listenAddrPath. Should the no-args<br>
constructor do the same thing, or is there an intended semantic<br>
distinction from having an empty list vs. no list?<br>
<br></blockquote><div>Just looked to remind myself. No intended semantics. Looks like \
a just made a simple mistake. (When I do intend a variable to possibly hold null, \
I'm rather consistent about including an "opt" in the name.) Thanks for \
figuring this out.<br> <br>Big fixed and change committed.<br><br> </div><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">
--<br>
Kevin Reid <<a href="http://switchb.org/kpreid/" \
target="_blank">http://switchb.org/kpreid/</a>><br> <br>
<br>
<br>
<br>
_______________________________________________<br>
e-lang mailing list<br>
<a href="mailto:e-lang@mail.eros-os.org">e-lang@mail.eros-os.org</a><br>
<a href="http://www.eros-os.org/mailman/listinfo/e-lang" \
target="_blank">http://www.eros-os.org/mailman/listinfo/e-lang</a><br> \
</blockquote></div><br><br clear="all"><br>-- <br>Text by me above is hereby placed \
in the public domain<br><br> Cheers,<br> --MarkM<br><br>
_______________________________________________
e-lang mailing list
e-lang@mail.eros-os.org
http://www.eros-os.org/mailman/listinfo/e-lang
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic