Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Why does DJ v3.7.7.81 generate weird-looking static fields like class$exercise$MyClass and static methods _mthclass$(String)?

Reply
Thread Tools

Why does DJ v3.7.7.81 generate weird-looking static fields like class$exercise$MyClass and static methods _mthclass$(String)?

 
 
Bruce .J Sam
Guest
Posts: n/a
 
      06-16-2005
I have use DJ v3.7.7.81 to decompile MyClass.class and
MyClass$1.class. The result is so werid-looking. How can I do if I want
to recompile the decomplied class?

//MyClass.class decompile result.
//Decompiler options: packimports(3) noinners
package exercise;

public interface MyClass
{

public abstract void perform();

public static final String CONTROL_TYPE =
(MyClass$1.class$exercise$MyClass != null ?
MyClass$1.class$exercise$MyClass : (MyClass$1.class$exercise$MyClass =
MyClass$1._mthclass$("exercise.MyClass"))).getName ();

}

//MyClass$1.class decompile result.
//Decompiler options: packimports(3) noinners

package exercise;

class MyClass$1
{

static Class _mthclass$(String s)
{
try
{
return Class.forName(s);
}
catch(ClassNotFoundException classnotfoundexception)
{
throw new
NoClassDefFoundError(classnotfoundexception.getMes sage());
}
}

static Class class$exercise$MyClass; /* synthetic field */
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does refactoring generate private static method? csharper ASP .Net 3 06-18-2010 12:01 AM
Is there a way to find the class methods of a class, just like'methods' finds the instance methods? Kenneth McDonald Ruby 5 09-26-2008 03:09 PM
Why inner class can not have static data, static fields or nested class? Robin Java 0 06-06-2007 11:16 AM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Why Petshop Changed all static methods to instance methods when upgrading from version 3.0 to version 3.1? Neo ASP .Net 1 01-07-2005 01:46 AM



Advertisments