Article View: borland.public.jbuilder.debugger
Article #5142Re: Inner Class
From: JD
Date: Tue, 02 Feb 1999 00:00
Date: Tue, 02 Feb 1999 00:00
61 lines
2689 bytes
2689 bytes
Not digging for it, I can understand. But not allowing me to specify it is
another thing. Anyway, thanks for the response. (And no, it's not just ego
code ;-)
Richard Wilkman wrote:
> JD:
>
> JB has to find a runnable node in a piece of source code. We look for
> main() or init() as a top level node and use the first one we find as
> the "runnable node".
>
> You really wouldn't want us to have to parse, entirely, all files in a
> project just to find a hidden main()! Well, the other 99% of the
> world wouldn't like the wait <g>.
>
> That particuler tip from Bruce still doesn't strike me as beneficial
> (and he didn't originate it, either) beyond being a piece of "ego
> code" ("Hey, look what *I* can do!"), but if it has some real world
> gain for you, great!
>
> -Rich
>
> JD wrote:
> >
> > I'm having trouble debugging a main() inside an inner class. Here's the
> > code:
> >
> > public class TestInner{
> > public TestInner() { }
> >
> > static public class Inner{
> > public static void main(String args[]){
> > System.out.println("some output");
> > }
> > }
> > }
> >
> > It compiles fine, and runs from the command line (java TestInner$Inner)
> > but I can't run/debug it from JBuilder. I get a message: "Cannot
> > determine runnable file". I can't set TestInner$Inner to be the default
> > runnable, even if I edit the jpr file by hand. This works in J++. Any
> > ideas?
> >
> > P.S. If you're wondering why the hell I'd do this, check out Bruce
> > Eckel's excellent book _Thinking_in_Java_.
>
> --
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Rich Wilkman
> Senior Quality Assurance Engineer
> Borland JBuilder Team
>
> If you see something that looks like an opinion up there,
> it's mine and mine alone.
>
> Mail sent to me from the newsgroups won't bounce but will
> be ignored. If I have time, I'll respond, but you have
> a better chance if you confine your posts to the newsgroups
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<36B759CC.DDF75100@NOSPAM.nh.ultranet.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36B20481.D330D0CB@nh.ultranet.com> <36B5E04C.F18F69AD@inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: ff5c5,c1f13fcd437ce813 X-Google-Attributes: gidff5c5,public From: JD <jdillon@NOSPAM.nh.ultranet.com> Subject: Re: Inner Class Date: 1999/02/02 Message-ID: <36B759CC.DDF75100@NOSPAM.nh.ultranet.com> X-Deja-AN: 439882451 Content-Transfer-Encoding: 7bit References: <36B20481.D330D0CB@nh.ultranet.com> <36B5E04C.F18F69AD@inprise.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.debugger