| Author |
Class names issue
|
Cristian Cardenas
Ranch Hand
Joined: Jan 29, 2002
Posts: 50
|
|
Hi all, I have a class which .class name is $clase.class and by decompiling it, I saw that the name in the source code was _cls$clase. Why the names are different. Which is the trick? Thanks. Cristian.
|
 |
Layne Lund
Ranch Hand
Joined: Dec 06, 2001
Posts: 3061
|
|
|
Usually, a $ in the name of a .class file indicates a nested or inner class, either named or anonymous.
|
Java API Documentation
The Java Tutorial
|
 |
Cristian Cardenas
Ranch Hand
Joined: Jan 29, 2002
Posts: 50
|
|
Yeah, but, usually the name of .class in nested classes is parent$child.class In this case the name inside the .java file (source code) is _cls$Base and the name of the .class file is $Base.class Here it's the source code resulting after decompile a $Base.class file: class _cls$Base{ .............. .............. .............. } Thanks. Critian
|
 |
Layne Lund
Ranch Hand
Joined: Dec 06, 2001
Posts: 3061
|
|
|
I haven't ever used a decompiler, so I don't know exactly what is going on. Sorry that I can't be of much help here.
|
 |
 |
|
|
subject: Class names issue
|
|
|