*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@1164 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
jochen 26 years ago
parent 81b43965eb
commit a23cab6985
  1. 10
      jode/jode/obfuscator/ClassIdentifier.java.in
  2. 9
      jode/jode/obfuscator/Makefile.am

@ -185,10 +185,12 @@ public class ClassIdentifier extends Identifier {
public int compare(Object o1, Object o2) { public int compare(Object o1, Object o2) {
Identifier i1 = (Identifier)o1; Identifier i1 = (Identifier)o1;
Identifier i2 = (Identifier)o2; Identifier i2 = (Identifier)o2;
boolean special1 = (i1.equals("<init>") String name1 = i1.getName();
|| i1.equals("<clinit>")); String name2 = i2.getName();
boolean special2 = (i2.equals("<init>") boolean special1 = (name1.equals("<init>")
|| i2.equals("<clinit>")); || name1.equals("<clinit>"));
boolean special2 = (name2.equals("<init>")
|| name2.equals("<clinit>"));
// Put constructors at the beginning // Put constructors at the beginning
if (special1 != special2) { if (special1 != special2) {
return special1 ? -1 : 1; return special1 ? -1 : 1;

@ -3,7 +3,8 @@
JAR = @JAR@ JAR = @JAR@
JAVAC = @JAVAC@ JAVAC = @JAVAC@
JAVADEP = $(top_builddir)/javaDependencies.pl -subdir=$(subdir)\ JAVADEP = $(top_builddir)/javaDependencies.pl -subdir=$(subdir)\
-dependdir=$(top_builddir) -classpath=$(top_builddir):$(top_srcdir) -dependdir=$(top_builddir) -classpath=$(top_builddir):$(top_srcdir) \
-depfile=Makefile.dep
CLASSPATH = @CLASSPATH@ CLASSPATH = @CLASSPATH@
CLASSLIB = @CLASSLIB@ CLASSLIB = @CLASSLIB@
SUBSTCP = @SUBSTCP@ SUBSTCP = @SUBSTCP@
@ -42,13 +43,13 @@ MY_JAVA_FILES = \
noinst_DATA = $(MY_JAVA_FILES:.java=.class) noinst_DATA = $(MY_JAVA_FILES:.java=.class)
EXTRA_DIST = $(MY_JAVA_FILES) EXTRA_DIST = $(MY_JAVA_FILES)
@QUOTE@-include $(MY_JAVA_FILES:.java=.dep) @QUOTE@-include Makefile.dep
%.class: %.java %.class: %.java
$(JAVAC) -classpath `$(SUBSTCP) $(BUILD_CLASSPATH):$(CLASSLIB)` -d $(top_builddir) $< $(JAVAC) -classpath `$(SUBSTCP) $(BUILD_CLASSPATH):$(CLASSLIB)` -d $(top_builddir) $<
%.dep: %.class Makefile.dep: $(MY_JAVA_FILES:.java=.class)
$(JAVADEP) $< >$@ $(JAVADEP) $^
clean-local: clean-local:
@rm -f *.class @rm -f *.class

Loading…
Cancel
Save