哪位高手帮忙看看下面反编译的java代码?

zhutr 2008-08-28 04:59:04
完全看不明白这些反编译的东东,哪位高手能帮忙翻译一下?

if(loader instanceof myClassLoader)
{
DVBClassLoaderImpl ldr = (myClassLoaderImpl)loader;
Method m = (Method)AccessController.doPrivileged(new PrivilegedAction() {

public Object run()
{
Method m = null;
IxcClassLoader.class$1;
if(IxcClassLoader.class$1 != null) goto _L2; else goto _L1
_L1:
JVM INSTR pop ;
IxcClassLoader.class$1 = Class.forName("java.security.SecureClassLoader");
goto _L2
JVM INSTR new #42 <Class NoClassDefFoundError>;
JVM INSTR dup_x1 ;
JVM INSTR swap ;
getMessage();
NoClassDefFoundError();
throw ;
_L2:
"defineClass";
Class aclass[] = new Class[5];
aclass;
aclass;
0;
IxcClassLoader.class$2;
if(IxcClassLoader.class$2 != null) goto _L4; else goto _L3
_L3:
JVM INSTR pop ;
IxcClassLoader.class$2 = Class.forName("java.lang.String");
goto _L4
JVM INSTR new #42 <Class NoClassDefFoundError>;
JVM INSTR dup_x1 ;
JVM INSTR swap ;
getMessage();
NoClassDefFoundError();
throw ;
_L4:
JVM INSTR aastore ;
JVM INSTR dup ;
1;
classBytes.getClass();
JVM INSTR aastore ;
JVM INSTR dup ;
2;
Integer.TYPE;
JVM INSTR aastore ;
JVM INSTR dup ;
3;
Integer.TYPE;
JVM INSTR aastore ;
JVM INSTR dup ;
4;
IxcClassLoader.class$4;
if(IxcClassLoader.class$4 != null) goto _L6; else goto _L5
_L5:
JVM INSTR pop ;
IxcClassLoader.class$4 = Class.forName("java.security.CodeSource");
goto _L6
JVM INSTR new #42 <Class NoClassDefFoundError>;
JVM INSTR dup_x1 ;
JVM INSTR swap ;
getMessage();
NoClassDefFoundError();
throw ;
_L6:
JVM INSTR aastore ;
getDeclaredMethod();
m;
break MISSING_BLOCK_LABEL_156;
SecurityException e;
e;
Logger.error("[BDJSDK-JAVA] --- ", e);
break MISSING_BLOCK_LABEL_156;
e;
Logger.error("[BDJSDK-JAVA] --- ", e);
Method.setAccessible(new AccessibleObject[] {
m
}, true);
return m;
}

}
);
java.security.CodeSource cs = ldr.getAppProxy().getClass().getProtectionDomain().getCodeSource();
result = (Class)m.invoke(loader, new Object[] {
stubName, classBytes, new Integer(0), new Integer(classBytes.length), cs
});
} else
{
Method m = (Method)AccessController.doPrivileged(new PrivilegedAction() {

public Object run()
{
Method m = null;
IxcClassLoader.class$5;
if(IxcClassLoader.class$5 != null) goto _L2; else goto _L1
_L1:
JVM INSTR pop ;
IxcClassLoader.class$5 = Class.forName("java.lang.ClassLoader");
goto _L2
JVM INSTR new #42 <Class NoClassDefFoundError>;
JVM INSTR dup_x1 ;
JVM INSTR swap ;
getMessage();
NoClassDefFoundError();
throw ;
_L2:
"defineClass";
Class aclass[] = new Class[4];
aclass;
aclass;
0;
IxcClassLoader.class$2;
if(IxcClassLoader.class$2 != null) goto _L4; else goto _L3
_L3:
JVM INSTR pop ;
IxcClassLoader.class$2 = Class.forName("java.lang.String");
goto _L4
JVM INSTR new #42 <Class NoClassDefFoundError>;
JVM INSTR dup_x1 ;
JVM INSTR swap ;
getMessage();
NoClassDefFoundError();
throw ;
_L4:
JVM INSTR aastore ;
JVM INSTR dup ;
1;
classBytes.getClass();
JVM INSTR aastore ;
JVM INSTR dup ;
2;
Integer.TYPE;
JVM INSTR aastore ;
JVM INSTR dup ;
3;
Integer.TYPE;
JVM INSTR aastore ;
getDeclaredMethod();
m;
break MISSING_BLOCK_LABEL_121;
SecurityException e;
e;
Logger.error("[BDJSDK-JAVA] --- ", e);
break MISSING_BLOCK_LABEL_121;
e;
Logger.error("[BDJSDK-JAVA] --- ", e);
Method.setAccessible(new AccessibleObject[] {
m
}, true);
return m;
}

}
);
result = (Class)m.invoke(loader, new Object[] {
stubName, classBytes, new Integer(0), new Integer(classBytes.length)
});
}
...全文
98 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
huangyangweiyue 2008-08-29
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 chenggm 的回复:]
class类已经进行了加密,没法看到反编译后的源代码
[/Quote]

不是最终程序代码
chenggm 2008-08-29
  • 打赏
  • 举报
回复
class类已经进行了加密,没法看到反编译后的源代码
gejiuxia 2008-08-29
  • 打赏
  • 举报
回复
反编译完的类就这样,凡是参数名和中断点都变了,在更完善的反编译工具开发出来之前,只能忍了
zhutr 2008-08-29
  • 打赏
  • 举报
回复
反编译完了就成这样了,没反编译出最终代码:(

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧