Import GNU Classpath (classpath-0_97_2-release).

libjava/

2008-06-28  Matthias Klose  <doko@ubuntu.com>

        Import GNU Classpath (classpath-0_97_2-release).

        * Regenerate class and header files.
        * Regenerate auto* files.
        * gcj/javaprims.h: Define jobjectRefType.
        * jni.cc (_Jv_JNI_GetObjectRefType): New (stub only).
        (_Jv_JNIFunctions): Initialize GetObjectRefType.
        * gnu/classpath/jdwp/VMVirtualMachine.java,
        java/security/VMSecureRandom.java: Merge from classpath.
        * HACKING: Fix typo.
        * ChangeLog-2007: New file.
        * configure.ac: Set JAVAC, pass --disable-regen-headers to classpath.

libjava/classpath/

2008-06-28  Matthias Klose  <doko@ubuntu.com>

        * m4/ac_prog_javac.m4: Disable check for JAVAC, when
        not configured with --enable-java-maintainer-mode.
        * aclocal.m4, configure: Regenerate.
        * native/jni/gstreamer-peer/Makefile.am: Do not link with
        libclasspathnative.
        * native/jni/gstreamer-peer/Makefile.in: Regenerate.
        * tools/Makefile.am, lib/Makefile.am: Use JAVAC for setting
        JCOMPILER, drop flags not understood by gcj.

From-SVN: r137223
This commit is contained in:
Matthias Klose
2008-06-28 13:29:13 +00:00
parent 15c151967d
commit e0441a5bfb
1429 changed files with 32837 additions and 18119 deletions
+32 -26
View File
@@ -2,23 +2,12 @@
## GCJ LOCAL: use srcdir to find core classes.
GLIBJ_BOOTCLASSPATH='$(top_srcdir)/lib'
GLIBJ_CLASSPATH=$(srcdir)/asm
GLIBJ_CLASSPATH=.:$(srcdir)/asm
## END GCJ LOCAL
# Setup the compiler to use the GNU Classpath library we just build
if FOUND_GCJ
JCOMPILER = $(GCJ) -C -encoding UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath $(GLIBJ_CLASSPATH):.
else
if FOUND_ECJ
JCOMPILER = $(ECJ) -1.5 -encoding UTF-8 -warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath .:$(GLIBJ_CLASSPATH)
else
if FOUND_JAVAC
JCOMPILER = $(JAVAC) -encoding UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath .:$(GLIBJ_CLASSPATH)
else
error dunno how to setup the JCOMPILER and compile
endif # FOUND_JAVAC
endif # FOUND_ECJ
endif # FOUND_GCJ
## GCJ LOCAL: don't pass $(JAVACFLAGS) -source 1.5 -target 1.5
JCOMPILER = $(JAVAC) -g -w --encoding=UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath $(GLIBJ_CLASSPATH)
if CREATE_WRAPPERS
bin_SCRIPTS =
@@ -136,17 +125,35 @@ TOOLS_JAVA_FILES = $(srcdir)/gnu/classpath/tools/*/*.java \
$(srcdir)/external/asm/org/objectweb/asm/util/attrs/*.java \
$(srcdir)/external/asm/org/objectweb/asm/xml/*.java
# Properties files that must be included in the generated zip file.
PROPERTY_FILES = $(srcdir)/external/asm/org/objectweb/asm/optimizer/shrink.properties \
$(srcdir)/resource/com/sun/tools/javac/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/jar/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/orbd/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/rmic/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/rmid/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/serialver/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/keytool/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/native2ascii/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/appletviewer/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/common/Messages.properties \
$(srcdir)/resource/gnu/classpath/tools/getopt/Messages.properties \
$(srcdir)/resource/gnu/classpath/tools/tnameserv/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/jarsigner/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/rmiregistry/messages.properties \
$(srcdir)/resource/sun/rmi/rmic/messages.properties
# RMIC templates that must be included in the generated zip file.
RMIC_TEMPLATES = $(srcdir)/resource/gnu/classpath/tools/rmic/templates/*.jav
# The zip files with classes we want to produce.
TOOLS_ZIP = tools.zip
# Extra objects that will not exist until configure-time
BUILT_SOURCES = $(TOOLS_ZIP)
# RMIC templates that must be included in the generated zip file.
RMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/rmic/templates/*.jav
# All the files we find "interesting"
ALL_TOOLS_FILES = $(TOOLS_JAVA_FILES) $(RMIC_TEMPLATES)
ALL_TOOLS_FILES = $(TOOLS_JAVA_FILES) $(RMIC_TEMPLATES) $(PROPERTY_FILES)
# Some architecture independent data to be installed.
# GCJ LOCAL: do not install this.
@@ -173,7 +180,7 @@ dist-hook:
# the class files. Always regenerate all .class files and remove them
# immediately. And copy the template files we use to the classes dir
# so they get also included.
$(TOOLS_ZIP): $(TOOLS_JAVA_FILES)
$(TOOLS_ZIP): $(ALL_TOOLS_FILES)
## GCJ LOCAL: put classes in srcdir
## @rm -rf classes asm
## mkdir classes asm
@@ -200,14 +207,13 @@ if JAVA_MAINTAINER_MODE
$$AC -g -w -d $(srcdir)/asm @asm.lst
$(JCOMPILER) -g -w -d $(srcdir)/classes @classes.lst @vm-tools.lst
## Copy over tools resource files.
@list=`cd $(top_srcdir)/resource && find gnu/classpath/tools \
com/sun/javadoc com/sun/tools/doclets com/sun/tools/javac \
sun/rmi/rmic -name \*.properties -print`; \
@list=`cd $(srcdir)/resource && find gnu/classpath/tools com/sun/tools/javac \
sun/rmi/rmic -name \*.properties -print -o -name \*.jav -print`; \
for p in $$list; do \
dirname=classes/`dirname $$p`; \
if ! test -d "$$dirname"; then mkdir -p "$$dirname"; fi; \
echo " cp $(top_srcdir)/resource/$$p classes/$$p"; \
cp $(top_srcdir)/resource/$$p classes/$$p; \
echo " cp $(srcdir)resource/$$p classes/$$p"; \
cp $(srcdir)/resource/$$p classes/$$p; \
done
endif
## Copy over rmic template files.
@@ -224,12 +230,12 @@ endif
## First add classpath tools stuff.
(cd classes; \
if test "$(ZIP)" != ""; then $(ZIP) -r ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then $(FASTJAR) cf ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then "$(FASTJAR)" cf ../$(TOOLS_ZIP) .; fi; \
cd ..)
## Now add ASM classes.
(cd asm; \
if test "$(ZIP)" != ""; then $(ZIP) -u -r ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then $(FASTJAR) uf ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then "$(FASTJAR)" uf ../$(TOOLS_ZIP) .; fi; \
cd ..)
rm -rf asm classes classes.lst asm.lst
+36 -36
View File
@@ -65,6 +65,8 @@ am__aclocal_m4_deps = $(top_srcdir)/../../config/depstand.m4 \
$(top_srcdir)/../../ltoptions.m4 \
$(top_srcdir)/../../ltsugar.m4 \
$(top_srcdir)/../../ltversion.m4 \
$(top_srcdir)/m4/ac_prog_javac.m4 \
$(top_srcdir)/m4/ac_prog_javac_works.m4 \
$(top_srcdir)/m4/acattribute.m4 $(top_srcdir)/m4/accross.m4 \
$(top_srcdir)/m4/acinclude.m4 \
$(top_srcdir)/m4/ax_create_stdint_h.m4 \
@@ -232,7 +234,6 @@ DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
ECJ = @ECJ@
ECJ_JAR = @ECJ_JAR@
EGREP = @EGREP@
ENABLE_LOCAL_SOCKETS_FALSE = @ENABLE_LOCAL_SOCKETS_FALSE@
@@ -244,19 +245,8 @@ EXTRA_CFLAGS = @EXTRA_CFLAGS@
FASTJAR = @FASTJAR@
FGREP = @FGREP@
FIND = @FIND@
FOUND_ECJ_FALSE = @FOUND_ECJ_FALSE@
FOUND_ECJ_TRUE = @FOUND_ECJ_TRUE@
FOUND_GCJ_FALSE = @FOUND_GCJ_FALSE@
FOUND_GCJ_TRUE = @FOUND_GCJ_TRUE@
FOUND_JAVAC_FALSE = @FOUND_JAVAC_FALSE@
FOUND_JAVAC_TRUE = @FOUND_JAVAC_TRUE@
FOUND_JIKES_FALSE = @FOUND_JIKES_FALSE@
FOUND_JIKES_TRUE = @FOUND_JIKES_TRUE@
FOUND_KJC_FALSE = @FOUND_KJC_FALSE@
FOUND_KJC_TRUE = @FOUND_KJC_TRUE@
FREETYPE2_CFLAGS = @FREETYPE2_CFLAGS@
FREETYPE2_LIBS = @FREETYPE2_LIBS@
GCJ = @GCJ@
GCONF_CFLAGS = @GCONF_CFLAGS@
GCONF_LIBS = @GCONF_LIBS@
GDK_CFLAGS = @GDK_CFLAGS@
@@ -288,15 +278,12 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
JAVAC = @JAVAC@
JAVAC_MEM_OPT = @JAVAC_MEM_OPT@
JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION = @JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@
JAVA_MAINTAINER_MODE_FALSE = @JAVA_MAINTAINER_MODE_FALSE@
JAVA_MAINTAINER_MODE_TRUE = @JAVA_MAINTAINER_MODE_TRUE@
JAY = @JAY@
JAY_SKELETON = @JAY_SKELETON@
JIKES = @JIKES@
JIKESENCODING = @JIKESENCODING@
JIKESWARNINGS = @JIKESWARNINGS@
KJC = @KJC@
LD = @LD@
LDFLAGS = @LDFLAGS@
LIBDEBUG = @LIBDEBUG@
@@ -344,10 +331,8 @@ SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
STRICT_WARNING_CFLAGS = @STRICT_WARNING_CFLAGS@
STRIP = @STRIP@
USER_CLASSLIB = @USER_CLASSLIB@
TOOLSDIR = @TOOLSDIR@
USER_JAVAH = @USER_JAVAH@
USER_SPECIFIED_CLASSLIB_FALSE = @USER_SPECIFIED_CLASSLIB_FALSE@
USER_SPECIFIED_CLASSLIB_TRUE = @USER_SPECIFIED_CLASSLIB_TRUE@
USE_ESCHER_FALSE = @USE_ESCHER_FALSE@
USE_ESCHER_TRUE = @USE_ESCHER_TRUE@
USE_PREBUILT_GLIBJ_ZIP_FALSE = @USE_PREBUILT_GLIBJ_ZIP_FALSE@
@@ -420,12 +405,10 @@ target_vendor = @target_vendor@
toolexeclibdir = @toolexeclibdir@
vm_classes = @vm_classes@
GLIBJ_BOOTCLASSPATH = '$(top_srcdir)/lib'
GLIBJ_CLASSPATH = $(srcdir)/asm
@FOUND_ECJ_FALSE@@FOUND_GCJ_FALSE@@FOUND_JAVAC_TRUE@JCOMPILER = $(JAVAC) -encoding UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath .:$(GLIBJ_CLASSPATH)
@FOUND_ECJ_TRUE@@FOUND_GCJ_FALSE@JCOMPILER = $(ECJ) -1.5 -encoding UTF-8 -warn:-deprecation,serial,typeHiding,unchecked,unused,varargsCast -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath .:$(GLIBJ_CLASSPATH)
GLIBJ_CLASSPATH = .:$(srcdir)/asm
# Setup the compiler to use the GNU Classpath library we just build
@FOUND_GCJ_TRUE@JCOMPILER = $(GCJ) -C -encoding UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath $(GLIBJ_CLASSPATH):.
JCOMPILER = $(JAVAC) -g -w --encoding=UTF-8 -bootclasspath $(GLIBJ_BOOTCLASSPATH) -classpath $(GLIBJ_CLASSPATH)
@CREATE_WRAPPERS_TRUE@bin_SCRIPTS =
@CREATE_WRAPPERS_TRUE@AM_CPPFLAGS = -Wall \
@CREATE_WRAPPERS_TRUE@ -I$(top_srcdir)/include \
@@ -522,17 +505,36 @@ TOOLS_JAVA_FILES = $(srcdir)/gnu/classpath/tools/*/*.java \
$(srcdir)/external/asm/org/objectweb/asm/xml/*.java
# Properties files that must be included in the generated zip file.
PROPERTY_FILES = $(srcdir)/external/asm/org/objectweb/asm/optimizer/shrink.properties \
$(srcdir)/resource/com/sun/tools/javac/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/jar/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/orbd/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/rmic/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/rmid/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/serialver/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/keytool/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/native2ascii/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/appletviewer/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/common/Messages.properties \
$(srcdir)/resource/gnu/classpath/tools/getopt/Messages.properties \
$(srcdir)/resource/gnu/classpath/tools/tnameserv/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/jarsigner/messages.properties \
$(srcdir)/resource/gnu/classpath/tools/rmiregistry/messages.properties \
$(srcdir)/resource/sun/rmi/rmic/messages.properties
# RMIC templates that must be included in the generated zip file.
RMIC_TEMPLATES = $(srcdir)/resource/gnu/classpath/tools/rmic/templates/*.jav
# The zip files with classes we want to produce.
TOOLS_ZIP = tools.zip
# Extra objects that will not exist until configure-time
BUILT_SOURCES = $(TOOLS_ZIP)
# RMIC templates that must be included in the generated zip file.
RMIC_TEMPLATES = $(srcdir)/gnu/classpath/tools/rmic/templates/*.jav
# All the files we find "interesting"
ALL_TOOLS_FILES = $(TOOLS_JAVA_FILES) $(RMIC_TEMPLATES)
ALL_TOOLS_FILES = $(TOOLS_JAVA_FILES) $(RMIC_TEMPLATES) $(PROPERTY_FILES)
# Some architecture independent data to be installed.
# GCJ LOCAL: do not install this.
@@ -1094,7 +1096,6 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
pdf pdf-am ps ps-am tags uninstall uninstall-am \
uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-info-am
@FOUND_ECJ_FALSE@@FOUND_GCJ_FALSE@@FOUND_JAVAC_FALSE@error dunno how to setup the JCOMPILER and compile
@CREATE_WRAPPERS_FALSE@gappletviewer: gappletviewer.in
@CREATE_WRAPPERS_FALSE@gjarsigner: gjarsigner.in
@CREATE_WRAPPERS_FALSE@gkeytool: gkeytool.in
@@ -1126,7 +1127,7 @@ dist-hook:
# the class files. Always regenerate all .class files and remove them
# immediately. And copy the template files we use to the classes dir
# so they get also included.
$(TOOLS_ZIP): $(TOOLS_JAVA_FILES)
$(TOOLS_ZIP): $(ALL_TOOLS_FILES)
find $(srcdir)/external/asm -name '*.java' -print > asm.lst
find $(srcdir)/gnu/classpath/tools \
$(srcdir)/com/sun/javadoc \
@@ -1147,14 +1148,13 @@ $(TOOLS_ZIP): $(TOOLS_JAVA_FILES)
@JAVA_MAINTAINER_MODE_TRUE@ AC=`echo $(JCOMPILER) | sed -e 's/UTF-8/ISO-8859-1/g'`; \
@JAVA_MAINTAINER_MODE_TRUE@ $$AC -g -w -d $(srcdir)/asm @asm.lst
@JAVA_MAINTAINER_MODE_TRUE@ $(JCOMPILER) -g -w -d $(srcdir)/classes @classes.lst @vm-tools.lst
@JAVA_MAINTAINER_MODE_TRUE@ @list=`cd $(top_srcdir)/resource && find gnu/classpath/tools \
@JAVA_MAINTAINER_MODE_TRUE@ com/sun/javadoc com/sun/tools/doclets com/sun/tools/javac \
@JAVA_MAINTAINER_MODE_TRUE@ sun/rmi/rmic -name \*.properties -print`; \
@JAVA_MAINTAINER_MODE_TRUE@ @list=`cd $(srcdir)/resource && find gnu/classpath/tools com/sun/tools/javac \
@JAVA_MAINTAINER_MODE_TRUE@ sun/rmi/rmic -name \*.properties -print -o -name \*.jav -print`; \
@JAVA_MAINTAINER_MODE_TRUE@ for p in $$list; do \
@JAVA_MAINTAINER_MODE_TRUE@ dirname=classes/`dirname $$p`; \
@JAVA_MAINTAINER_MODE_TRUE@ if ! test -d "$$dirname"; then mkdir -p "$$dirname"; fi; \
@JAVA_MAINTAINER_MODE_TRUE@ echo " cp $(top_srcdir)/resource/$$p classes/$$p"; \
@JAVA_MAINTAINER_MODE_TRUE@ cp $(top_srcdir)/resource/$$p classes/$$p; \
@JAVA_MAINTAINER_MODE_TRUE@ echo " cp $(srcdir)resource/$$p classes/$$p"; \
@JAVA_MAINTAINER_MODE_TRUE@ cp $(srcdir)/resource/$$p classes/$$p; \
@JAVA_MAINTAINER_MODE_TRUE@ done
@list=`cd $(srcdir) && find gnu/classpath/tools -name \*.jav -print`; \
for p in $$list; do \
@@ -1167,11 +1167,11 @@ $(TOOLS_ZIP): $(TOOLS_JAVA_FILES)
cp -pR $(srcdir)/classes .
(cd classes; \
if test "$(ZIP)" != ""; then $(ZIP) -r ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then $(FASTJAR) cf ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then "$(FASTJAR)" cf ../$(TOOLS_ZIP) .; fi; \
cd ..)
(cd asm; \
if test "$(ZIP)" != ""; then $(ZIP) -u -r ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then $(FASTJAR) uf ../$(TOOLS_ZIP) .; fi; \
if test "$(FASTJAR)" != ""; then "$(FASTJAR)" uf ../$(TOOLS_ZIP) .; fi; \
cd ..)
rm -rf asm classes classes.lst asm.lst
@@ -139,8 +139,11 @@ public class Main
new PrintWriter(System.err),
Boolean.FALSE
});
String[] runArgs = new String[args.length + 1];
runArgs[0] = "-1.5";
System.arraycopy(args, 0, runArgs, 1, args.length);
return ((Boolean) ecjMethod.invoke(ecjInstance, new Object[]
{ args })).booleanValue() ? 0 : -1;
{ runArgs })).booleanValue() ? 0 : -1;
}
public static int compile(String[] args) throws Exception
@@ -0,0 +1,225 @@
# class mappings
#org/objectweb/asm/Edge=org/objectweb/asm/a
#org/objectweb/asm/Item=org/objectweb/asm/b
#org/objectweb/asm/FieldWriter=org/objectweb/asm/c
#org/objectweb/asm/MethodWriter=org/objectweb/asm/d
#org/objectweb/asm/AnnotationWriter=org/objectweb/asm/e
# field mappings
org/objectweb/asm/AnnotationWriter.cw=a
org/objectweb/asm/AnnotationWriter.size=b
org/objectweb/asm/AnnotationWriter.named=c
org/objectweb/asm/AnnotationWriter.bv=d
org/objectweb/asm/AnnotationWriter.parent=e
org/objectweb/asm/AnnotationWriter.offset=f
org/objectweb/asm/AnnotationWriter.next=g
org/objectweb/asm/AnnotationWriter.prev=h
org/objectweb/asm/Attribute.next=a
org/objectweb/asm/Attribute.value=b
org/objectweb/asm/ByteVector.data=a
org/objectweb/asm/ByteVector.length=b
org/objectweb/asm/ClassReader.items=a
org/objectweb/asm/ClassReader.strings=c
org/objectweb/asm/ClassReader.maxStringLength=d
#org/objectweb/asm/ClassReader.header=e
org/objectweb/asm/ClassWriter.TYPE=a
org/objectweb/asm/ClassWriter.version=b
org/objectweb/asm/ClassWriter.index=c
org/objectweb/asm/ClassWriter.pool=d
org/objectweb/asm/ClassWriter.items=e
org/objectweb/asm/ClassWriter.threshold=f
org/objectweb/asm/ClassWriter.key=g
org/objectweb/asm/ClassWriter.key2=h
org/objectweb/asm/ClassWriter.key3=i
org/objectweb/asm/ClassWriter.access=j
org/objectweb/asm/ClassWriter.name=k
org/objectweb/asm/ClassWriter.signature=l
org/objectweb/asm/ClassWriter.superName=m
org/objectweb/asm/ClassWriter.interfaceCount=n
org/objectweb/asm/ClassWriter.interfaces=o
org/objectweb/asm/ClassWriter.sourceFile=p
org/objectweb/asm/ClassWriter.sourceDebug=q
org/objectweb/asm/ClassWriter.enclosingMethodOwner=r
org/objectweb/asm/ClassWriter.enclosingMethod=s
org/objectweb/asm/ClassWriter.anns=t
org/objectweb/asm/ClassWriter.ianns=u
org/objectweb/asm/ClassWriter.attrs=v
org/objectweb/asm/ClassWriter.innerClassesCount=w
org/objectweb/asm/ClassWriter.innerClasses=x
org/objectweb/asm/ClassWriter.firstField=y
org/objectweb/asm/ClassWriter.lastField=z
org/objectweb/asm/ClassWriter.firstMethod=A
org/objectweb/asm/ClassWriter.lastMethod=B
org/objectweb/asm/ClassWriter.computeMaxs=C
org/objectweb/asm/ClassWriter.cr=D
org/objectweb/asm/Edge.stackSize=a
org/objectweb/asm/Edge.successor=b
org/objectweb/asm/Edge.next=c
org/objectweb/asm/Handler.start=a
org/objectweb/asm/Handler.end=b
org/objectweb/asm/Handler.handler=c
org/objectweb/asm/Handler.desc=d
org/objectweb/asm/Handler.type=e
org/objectweb/asm/Handler.next=f
org/objectweb/asm/FieldWriter.next=a
org/objectweb/asm/FieldWriter.cw=b
org/objectweb/asm/FieldWriter.access=c
org/objectweb/asm/FieldWriter.name=d
org/objectweb/asm/FieldWriter.desc=e
org/objectweb/asm/FieldWriter.signature=f
org/objectweb/asm/FieldWriter.value=g
org/objectweb/asm/FieldWriter.anns=h
org/objectweb/asm/FieldWriter.ianns=i
org/objectweb/asm/FieldWriter.attrs=j
org/objectweb/asm/Item.index=a
org/objectweb/asm/Item.type=b
org/objectweb/asm/Item.intVal=c
org/objectweb/asm/Item.longVal=d
org/objectweb/asm/Item.floatVal=e
org/objectweb/asm/Item.doubleVal=f
org/objectweb/asm/Item.strVal1=g
org/objectweb/asm/Item.strVal2=h
org/objectweb/asm/Item.strVal3=i
org/objectweb/asm/Item.hashCode=j
org/objectweb/asm/Item.next=k
org/objectweb/asm/Label.resolved=a
org/objectweb/asm/Label.position=b
org/objectweb/asm/Label.resized=c
org/objectweb/asm/Label.referenceCount=d
org/objectweb/asm/Label.srcAndRefPositions=e
org/objectweb/asm/Label.beginStackSize=f
org/objectweb/asm/Label.maxStackSize=g
org/objectweb/asm/Label.successors=h
org/objectweb/asm/Label.next=i
org/objectweb/asm/Label.pushed=j
org/objectweb/asm/Label.line=k
org/objectweb/asm/MethodWriter.next=a
org/objectweb/asm/MethodWriter.cw=b
org/objectweb/asm/MethodWriter.access=c
org/objectweb/asm/MethodWriter.name=d
org/objectweb/asm/MethodWriter.desc=e
org/objectweb/asm/MethodWriter.descriptor=f
org/objectweb/asm/MethodWriter.signature=g
org/objectweb/asm/MethodWriter.exceptionCount=h
org/objectweb/asm/MethodWriter.exceptions=i
org/objectweb/asm/MethodWriter.annd=j
org/objectweb/asm/MethodWriter.anns=k
org/objectweb/asm/MethodWriter.ianns=l
org/objectweb/asm/MethodWriter.panns=m
org/objectweb/asm/MethodWriter.ipanns=n
org/objectweb/asm/MethodWriter.attrs=o
org/objectweb/asm/MethodWriter.code=p
org/objectweb/asm/MethodWriter.maxStack=q
org/objectweb/asm/MethodWriter.maxLocals=r
org/objectweb/asm/MethodWriter.catchCount=s
org/objectweb/asm/MethodWriter.catchTable=t
org/objectweb/asm/MethodWriter.localVarCount=u
org/objectweb/asm/MethodWriter.localVar=v
org/objectweb/asm/MethodWriter.localVarTypeCount=w
org/objectweb/asm/MethodWriter.localVarType=x
org/objectweb/asm/MethodWriter.lineNumberCount=y
org/objectweb/asm/MethodWriter.lineNumber=z
org/objectweb/asm/MethodWriter.cattrs=A
org/objectweb/asm/MethodWriter.resize=B
org/objectweb/asm/MethodWriter.computeMaxs=C
org/objectweb/asm/MethodWriter.stackSize=D
org/objectweb/asm/MethodWriter.maxStackSize=E
org/objectweb/asm/MethodWriter.currentBlock=F
org/objectweb/asm/MethodWriter.blockStack=G
org/objectweb/asm/MethodWriter.SIZE=H
org/objectweb/asm/MethodWriter.classReaderOffset=I
org/objectweb/asm/MethodWriter.classReaderLength=J
org/objectweb/asm/MethodWriter.lastHandler=K
org/objectweb/asm/Type.sort=a
org/objectweb/asm/Type.buf=b
org/objectweb/asm/Type.off=c
org/objectweb/asm/Type.len=d
org/objectweb/asm/signature/SignatureReader.signature=a
org/objectweb/asm/signature/SignatureWriter.buf=a
org/objectweb/asm/signature/SignatureWriter.hasFormals=b
org/objectweb/asm/signature/SignatureWriter.hasParameters=c
org/objectweb/asm/signature/SignatureWriter.argumentStack=d
# method mappings
org/objectweb/asm/AnnotationWriter.getSize()I=a
org/objectweb/asm/AnnotationWriter.put([Lorg/objectweb/asm/AnnotationWriter;Lorg/objectweb/asm/ByteVector;)V=a
org/objectweb/asm/AnnotationWriter.put(Lorg/objectweb/asm/ByteVector;)V=a
org/objectweb/asm/Attribute.getCount()I=a
org/objectweb/asm/Attribute.getSize(Lorg/objectweb/asm/ClassWriter;[BIII)I=a
org/objectweb/asm/Attribute.put(Lorg/objectweb/asm/ClassWriter;[BIIILorg/objectweb/asm/ByteVector;)V=a
org/objectweb/asm/ByteVector.enlarge(I)V=a
org/objectweb/asm/ByteVector.put11(II)Lorg/objectweb/asm/ByteVector;=a
org/objectweb/asm/ByteVector.put12(II)Lorg/objectweb/asm/ByteVector;=b
org/objectweb/asm/ClassReader.copyPool(Lorg/objectweb/asm/ClassWriter;)V=a
org/objectweb/asm/ClassReader.readAnnotationValue(I[CLjava/lang/String;Lorg/objectweb/asm/AnnotationVisitor;)I=a
org/objectweb/asm/ClassReader.readAnnotationValues(I[CLorg/objectweb/asm/AnnotationVisitor;)I=a
org/objectweb/asm/ClassReader.readAttribute([Lorg/objectweb/asm/Attribute;Ljava/lang/String;II[CI[Lorg/objectweb/asm/Label;)Lorg/objectweb/asm/Attribute;=a
org/objectweb/asm/ClassReader.readClass(Ljava/io/InputStream;)[B=a
org/objectweb/asm/ClassReader.readParameterAnnotations(I[CZLorg/objectweb/asm/MethodVisitor;)V=a
org/objectweb/asm/ClassReader.readUTF(II[C)Ljava/lang/String;=a
org/objectweb/asm/ClassWriter.get(Lorg/objectweb/asm/Item;)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newClassItem(Ljava/lang/String;)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newConstItem(Ljava/lang/Object;)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newDouble(D)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newFloat(F)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newInteger(I)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newLong(J)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newMethodItem(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Lorg/objectweb/asm/Item;=a
org/objectweb/asm/ClassWriter.newString(Ljava/lang/String;)Lorg/objectweb/asm/Item;=b
org/objectweb/asm/ClassWriter.put122(III)V=a
org/objectweb/asm/ClassWriter.put(Lorg/objectweb/asm/Item;)V=b
org/objectweb/asm/FieldWriter.getSize()I=a
org/objectweb/asm/FieldWriter.put(Lorg/objectweb/asm/ByteVector;)V=a
org/objectweb/asm/Item.isEqualTo(Lorg/objectweb/asm/Item;)Z=a
org/objectweb/asm/Item.set(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V=a
org/objectweb/asm/Item.set(D)V=a
org/objectweb/asm/Item.set(F)V=a
org/objectweb/asm/Item.set(I)V=a
org/objectweb/asm/Item.set(J)V=a
org/objectweb/asm/Label.addReference(II)V=a
org/objectweb/asm/Label.put(Lorg/objectweb/asm/MethodWriter;Lorg/objectweb/asm/ByteVector;IZ)V=a
org/objectweb/asm/Label.resolve(Lorg/objectweb/asm/MethodWriter;I[B)Z=a
org/objectweb/asm/MethodWriter.addSuccessor(ILorg/objectweb/asm/Label;)V=a
org/objectweb/asm/MethodWriter.getArgumentsAndReturnSizes(Ljava/lang/String;)I=a
org/objectweb/asm/MethodWriter.getNewOffset([I[III)I=a
org/objectweb/asm/MethodWriter.getSize()I=a
org/objectweb/asm/MethodWriter.put(Lorg/objectweb/asm/ByteVector;)V=a
org/objectweb/asm/MethodWriter.readInt([BI)I=a
org/objectweb/asm/MethodWriter.readShort([BI)S=b
org/objectweb/asm/MethodWriter.readUnsignedShort([BI)I=c
org/objectweb/asm/MethodWriter.resizeInstructions([I[II)[I=a
org/objectweb/asm/MethodWriter.writeShort([BII)V=a
org/objectweb/asm/MethodWriter.getNewOffset([I[ILorg/objectweb/asm/Label;)V=a
org/objectweb/asm/Type.getType([CI)Lorg/objectweb/asm/Type;=a
org/objectweb/asm/Type.getDescriptor(Ljava/lang/StringBuffer;)V=a
org/objectweb/asm/Type.getDescriptor(Ljava/lang/StringBuffer;Ljava/lang/Class;)V=a
org/objectweb/asm/signature/SignatureReader.parseType(Ljava/lang/String;ILorg/objectweb/asm/signature/SignatureVisitor;)I=a
org/objectweb/asm/signature/SignatureWriter.endFormals()V=a
org/objectweb/asm/signature/SignatureWriter.endArguments()V=b
@@ -113,7 +113,7 @@ class CommonAppletStub
*/
public String getParameter(String name)
{
return (String) tag.getParameter(name.toLowerCase());
return tag.getParameter(name.toLowerCase());
}
/**
@@ -55,7 +55,6 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.ResourceBundle;
class Main
@@ -61,8 +61,6 @@ import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import javax.swing.JOptionPane;
class PluginAppletWindow
extends EmbeddedWindow
@@ -350,7 +348,7 @@ class PluginAppletWindow
* Called when the hierarchy of this component changes. Use
* <code>getChangeFlags()</code> on the event to see what exactly changed.
*
* @param e the event describing the change
* @param event the event describing the change
*/
public void hierarchyChanged(HierarchyEvent event)
{
@@ -512,7 +512,7 @@ class StandaloneAppletWindow
* Called when the hierarchy of this component changes. Use
* <code>getChangeFlags()</code> on the event to see what exactly changed.
*
* @param e the event describing the change
* @param event the event describing the change
*/
public void hierarchyChanged(HierarchyEvent event)
{
@@ -292,7 +292,7 @@ public class TagParser
/**
* Parses the archive string and returns a list.
*
* @param the list of archives (comma-separated) in a String.
* @param arcs the list of archives (comma-separated) in a String.
*/
static ArrayList parseArchives(String arcs, AppletTag t)
{
@@ -38,9 +38,16 @@ exception statement from your version. */
package gnu.classpath.tools.common;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.Reader;
import java.text.MessageFormat;
import java.util.ArrayList;
import gnu.classpath.Configuration;
import gnu.classpath.tools.getopt.FileArgumentCallback;
import gnu.classpath.tools.getopt.Option;
import gnu.classpath.tools.getopt.OptionException;
import gnu.classpath.tools.getopt.Parser;
@@ -84,4 +91,149 @@ public class ClasspathToolParser
}
});
}
public void parse(String[] inArgs, FileArgumentCallback files,
boolean handleFileLists)
{
FileArgumentCallback cb;
if (handleFileLists)
cb = new AtFileArgumentCallback(files);
else
cb = files;
parse(inArgs, cb);
}
public String[] parse(String[] inArgs, boolean handleFileLists)
{
final ArrayList<String> fileResult = new ArrayList<String>();
final FileArgumentCallback cb = new FileArgumentCallback()
{
public void notifyFile(String fileArgument)
{
fileResult.add(fileArgument);
}
};
if (handleFileLists)
parse(inArgs, new AtFileArgumentCallback(cb));
else
parse(inArgs, cb);
return fileResult.toArray(new String[fileResult.size()]);
}
/**
* Simple function that takes the given {@link Reader}, treats it like
* a textfile and reads all the whitespace separated entries from it
* and adds them to the @{link FileArgumentCallback} instance.
*
* @param reader the reader to read from.
* @param cb the callback to post the filenames to.
* @throws OptionException if an error occurs reading the list.
*/
public void parseFileList(Reader reader, FileArgumentCallback cb)
throws OptionException
{
BufferedReader breader = new BufferedReader(reader);
String line = null;
try
{
while ((line = breader.readLine()) != null)
parseLine(line, cb);
reader.close();
}
catch (IOException ioe)
{
throw new OptionException("I/O error while reading a file list", ioe);
}
}
/**
* Parses whitespace separated file entries.
*
* Note: This is not coping with whitespace in files or quoting.
*
* @param line the line of the file to parse.
* @param cb the callback to pass the parsed file to.
* @throws IOException if an I/O error occurs.
* @throws OptionException if an error occurs in the callback.
*/
private void parseLine(String line, FileArgumentCallback cb)
throws IOException, OptionException
{
final int length = line.length();
int start = 0;
int end = 0;
// While not reached end of line ...
while (start < length)
{
// Search for first non-whitespace character for the start of a word.
while (Character.isWhitespace(line.codePointAt(start)))
{
start++;
if (start == length)
return;
}
end = start + 1;
// Search for first whitespace character for the end of a word.
while (end < length && !Character.isWhitespace(line.codePointAt(end)))
end++;
cb.notifyFile(line.substring(start, end));
start = end + 1;
}
}
/**
* Implementation of {@link FileArgumentCallback} that handles
* file arguments in {@link #notifyFile} starting with a <code>@</code>
* through {@link ClasspathToolParser#parseFileList}.
*/
class AtFileArgumentCallback extends FileArgumentCallback
{
FileArgumentCallback cb;
AtFileArgumentCallback(FileArgumentCallback cb)
{
this.cb = cb;
}
@Override
public void notifyFile(String fileArgument)
throws OptionException
{
if (fileArgument.codePointAt(0) == '@')
{
FileReader fr = null;
try
{
fr = new FileReader(fileArgument.substring(1));
}
catch (FileNotFoundException fnfe)
{
throw new OptionException("File not found: " + fileArgument.substring(1),
fnfe);
}
ClasspathToolParser.this.parseFileList(fr, cb);
}
else
cb.notifyFile(fileArgument);
}
}
}
@@ -49,4 +49,10 @@ public class OptionException
{
super(message);
}
public OptionException(String message, Throwable cause)
{
super(message, cause);
}
}
@@ -172,9 +172,9 @@ public class Main
}
}
private Parser initializeParser()
private ClasspathToolParser initializeParser()
{
Parser p = new JarParser("jar"); //$NON-NLS-1$
ClasspathToolParser p = new JarParser("jar"); //$NON-NLS-1$
p.setHeader(Messages.getString("Main.Usage")); //$NON-NLS-1$
OptionGroup grp = new OptionGroup(Messages.getString("Main.OpMode")); //$NON-NLS-1$
@@ -265,11 +265,11 @@ public class Main
private void run(String[] args)
throws InstantiationException, IllegalAccessException, IOException
{
Parser p = initializeParser();
ClasspathToolParser p = initializeParser();
// Special hack to emulate old tar-style commands.
if (args.length > 0 && args[0].charAt(0) != '-')
args[0] = '-' + args[0];
p.parse(args, new HandleFile());
p.parse(args, new HandleFile(), true);
if (readNamesFromStdin)
readNames();
Action t = (Action) operationMode.newInstance();
@@ -63,14 +63,14 @@ public class CniIncludePrinter
return new PrintStream(fos);
}
public void printClass(File filename, ClassWrapper klass) throws IOException
public void printClass(File file, ClassWrapper klass) throws IOException
{
// Never write Object or Class. This is a hack, maybe
// the user would like to see what they look like...
if (klass.name.equals("java/lang/Object")
|| klass.name.equals("java/lang/Class"))
return;
PrintStream ps = getPrintStream(filename + ".h", klass);
PrintStream ps = getPrintStream(file + ".h", klass);
if (ps == null)
return;
ps.println();
@@ -38,10 +38,11 @@
package gnu.classpath.tools.javah;
import gnu.classpath.tools.common.ClasspathToolParser;
import gnu.classpath.tools.getopt.Option;
import gnu.classpath.tools.getopt.OptionException;
import gnu.classpath.tools.getopt.OptionGroup;
import gnu.classpath.tools.getopt.Parser;
import java.io.IOException;
import java.util.ArrayList;
@@ -60,9 +61,9 @@ public class GcjhMain extends Main
return "gcjh";
}
protected Parser getParser()
protected ClasspathToolParser getParser()
{
Parser result = super.getParser();
ClasspathToolParser result = super.getParser();
result.setHeader("usage: gcjh [OPTION]... CLASS...");

Some files were not shown because too many files have changed in this diff Show More