Path: csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!news.albasani.net!.POSTED!not-for-mail From: j4n bur53 Newsgroups: comp.lang.java.programmer Subject: Thanks (Was: A small quiz) Date: Fri, 2 Oct 2015 00:12:24 +0200 Organization: albasani.net Lines: 22 Message-ID: References: <45bae432-2df5-4878-832b-11c465d666d8@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.albasani.net R+4qXPn9GrXWOHUeheTVQU4ghpkXjODFFNnY46o+TdlBygXUCpLg5C1Hh4L78+I3QXe4/fXEhi/k9NIe3pMSmg== NNTP-Posting-Date: Thu, 1 Oct 2015 22:12:25 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="On5opAgvHOKUa5F7UCvvloPU275qvQmuRpRjmLI44mNJjIW4RTxyrxipyfXjCbRfAFs3be+Cw/Hrsf5uiNPfjAJHpiI6M68z5rUevLE+CqBZ6np/VxwitV7JIIWwBrUJ"; mail-complaints-to="abuse@albasani.net" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0 SeaMonkey/2.35 In-Reply-To: Cancel-Lock: sha1:QENdh9wfB4UmWexeaTlrlh6hgKI= Xref: csiph.com comp.lang.java.programmer:32759 Eric Douglas schrieb: > Why does passing in a null constant generate this runtime error, and not a compile error? > It's just a confusing use of overload. > http://stackoverflow.com/questions/3131865/why-does-string-valueofnull-throw-a-nullpointerexception Was just wondering how long it takes me to find the Java language choice rule for overloaded Java class members. And here it is. Currently doing an experiment in Prolog to Java scripting, and need to code a dispatcher. An ad-hoc dispatcher which uses the input order of the Java class members already works: Better Modules: An auto loader for overloaded members. (Jekejeke) https://plus.google.com/+JekejekeCh/posts/SANxqdzvUaz But I guess sooner or later I will need something more intelligent and closer to the Java language rules. Respecting the implements relation ship of the base class to its super class is also on the todo list.