Closed Thread Icon

Topic awaiting preservation: Strange Classes. Pages that link to <a href="https://ozoneasylum.com/backlink?for=29895" title="Pages that link to Topic awaiting preservation: Strange Classes." rel="nofollow" >Topic awaiting preservation: Strange Classes.\

 
Author Thread
bitdamaged
Maniac (V) Mad Scientist

From: 100101010011 <-- right about here
Insane since: Mar 2000

posted posted 01-21-2008 18:50

So I'm working on a Java project for the first time in like forever. A language I've never had been very good at and I'm running into something thats throwing me off.

I have an api I'm using (Smack for XMPP/Jabber traffic). When I compile it I get a bunch of classes named PacketReader$1.class and PacketReader$2.class etc. through $4. What's happening here?



.:[ Never resist a perfect moment ]:.

argo navis
Paranoid (IV) Inmate

From: Switzerland
Insane since: Jul 2007

posted posted 01-21-2008 18:54

The normal compiled expression of nested classes : PacketReader$1 is "child class 1 of class packetreader". And so on and so forth.
It's ugly, but it's legit.

« BackwardsOnwards »

Show Forum Drop Down Menu