🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #98

Re: missing return statement

#98
From: Kevin Dean [TeamB]
Date: Wed, 04 May 2005 02:59
24 lines
1796 bytes
Kang wrote:

> I think the method1 and the method2 is the same.
> Why the compiler complains "missing return statement" in the method2?
> Thanks.

In order for the compiler to prove definitively that the two are
equivalent, it would have to inline method3, and inline any methods it
calls, and so on, and so on.  All the compiler sees when its compiling
method2 is a call to method3; it doesn't know or care at that point
exactly what method3 does.

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

NEW WHITEPAPERS
Team Development with JBuilder and Borland Enterprise Server
Securing Borland Enterprise Server
http://www.datadevelopment.com/papers/index.html

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <xn0e1tnxrz2fja004-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42782ee5$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,36777f101f4060bd
X-Google-Attributes: gid1089d0,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: missing return statement
Newsgroups: borland.public.jbuilder.java.api
References:  <42782ee5$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.17.4.1
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobr
 p]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0e1tnxrz2fja004-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:000001A6
NNTP-Posting-Host: 24.57.153.235
Date: 3 May 2005 19:59:29 -0700
X-Trace: newsgroups.borland.com 1115175569 24.57.153.235 (3 May 2005 19:59:29 -0700)
Lines: 24
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail