🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #17691

Re: Why when compile one .java the compiler generate three .class of the same Class.

#17691
From: John P. McGrath
Date: Mon, 19 Oct 1998 00:00
25 lines
1157 bytes
Martin Fuente <tinchete@hotmail.com> wrote:

> Hello, I don't understand why when i compile a small applet 
> whitout any inner class, the compiler generate more than one
> .class. 

As Steve Horsley pointed out, you have defined 2 inner classes in 
your program.  They are anonymous inner classes, and were 
probably generated by JBuilder.

The code that defines the anonymous inner class probably looks 
something like this:

   button.addActionListener( new ActionListener() {
      public void actionPerformed( ActionEvent e ) {
         :
      }
   } );

-- 
Regards,

John P. McGrath
<mcgrath@enter.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.1094c85e1f2fa9759896e2@forums.inprise.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <706iha$pvb6@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e3f6db5b1bc8dcb7
X-Google-Attributes: gidf74b3,public
From: mcgrath@enter.net (John P. McGrath)
Subject: Re: Why when compile one .java the compiler generate three .class of the same Class.
Date: 1998/10/19
Message-ID: <MPG.1094c85e1f2fa9759896e2@forums.inprise.com>
X-Deja-AN: 402743724
References: <706iha$pvb6@forums.borland.com>
Organization: Software Consulting Services
Newsgroups: borland.public.jbuilder.java.language