Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 08 Sep 2013 06:41:45 -0500 Date: Sun, 08 Sep 2013 12:41:45 +0100 From: lipska the kat <"nospam at neversurrender dot co dot uk"> Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: Primitive return value after exception in method References: <5222eb58$0$6555$9b4e6d93@newsspool4.arcor-online.net> <52236225$0$296$14726298@news.sunsite.dk> <522373f2$0$6568$9b4e6d93@newsspool3.arcor-online.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <7PidnXF_D8rn_7HPnZ2dnUVZ8oidnZ2d@bt.com> Lines: 26 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-NN1J104c4uY+R8a5t/gwK5Bpv4nBa6LcKET9Wts1byNJjcjXmTU0CmzfRiU9HLL7Vue76fgzEUJVSQw!7ZeOTU/eNEoAgVj/Ini4fjYKgDRy4WMVKa+elhYdauCp7FL6xe9+J1ya5c5J43EeO9D97G7Vpw== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2377 Xref: csiph.com comp.lang.java.programmer:25248 On 08/09/13 11:33, Robert Klemme wrote: > On 08.09.2013 10:12, lipska the kat wrote: >> On 02/09/13 07:34, Robert Klemme wrote: > >>> One can pass values back to the caller in this situation even in Java - >>> albeit not via return value. All you need to do is to pass an object >>> reference into the method and modify the state of that object before you >>> throw the exception. > >> I've just read this thread and frankly I'm surprised that apparently >> experienced developers are apparently suggesting that this sort of thing >> is even attempted. > > Where do you see that? Where do I see what? Someone asked a question, I gave my opinion ... I don't see the problem. Where do I see what? -- Lipska the KatŠ: Troll hunter, sandbox destroyer and farscape dreamer of Aeryn Sun GNU/Linux user #560883 - http://www.linuxcounter.net