0f918fea8b
2000-01-04 Tom Tromey <tromey@cygnus.com> * java/lang/reflect/natConstructor.cc (newInstance): Pass declaring class as return_type argument to _Jv_CallNonvirtualMethodA. * java/lang/reflect/natMethod.cc (_Jv_CallNonvirtualMethodA): In constructor case, create object and use it as `this' argument. * java/lang/Class.h (_getConstructors): Declare. (_getFields): Declare. * java/lang/Class.java (getConstructors): Wrote. (_getConstructors): New native method. (getDeclaredConstructors): Wrote. (_getFields): Declare new native method. * java/lang/natClass.cc (_Jv_LookupInterfaceMethod): Removed incorrect comment. (getMethod): Work correctly when class is primitive. (getDeclaredMethods): Likewise. Compute offset using `method', not `mptr'. (getDeclaredMethod): Likewise. (getConstructor): Wrote. (ConstructorClass): New define. (getDeclaredConstructor): Wrote. (_getConstructors): New method. (_getFields): New method. (getFields): Wrote. * Makefile.in: Rebuilt. * Makefile.am (AM_CXXFLAGS): Added -D_GNU_SOURCE. * prims.cc: Remove `#pragma implementation'. * gcj/array.h: Remove `#pragma interface'. * prims.cc (_Jv_equaln): New function. * java/lang/Class.java (getSignature): Declare. * resolve.cc (_Jv_LookupDeclaredMethod): Moved to natClass.cc. * java/lang/natClass.cc (_Jv_LookupDeclaredMethod): Moved from resolve.cc. (getSignature): New method. (getDeclaredMethod): Wrote. (getMethod): Wrote. Include StringBuffer.h. * java/lang/Class.h (Class): Added _Jv_FromReflectedConstructor as a friend. Unconditionally declare _Jv_LookupDeclaredMethod as a friend. (getSignature): Declare. * include/jvm.h (_Jv_GetTypesFromSignature): Declare. (_Jv_equaln): Declare. (_Jv_CallNonvirtualMethodA): Declare. * Makefile.in: Rebuilt. * Makefile.am (nat_source_files): Added natConstructor.cc. (java/lang/reflect/Constructor.h): New target. * java/lang/reflect/natConstructor.cc: New file. * java/lang/reflect/Constructor.java (newInstance): Now native. (declaringClass): Renamed from decl_class. (offset): Renamed from index. (getType): New native method. (getModifiers): Now native. (getParameterTypes): Call getType if required. (hashCode): Include hash code from declaring class. (modifiers): Removed. (toString): Call getType if required. * gcj/method.h (_Jv_FromReflectedConstructor): New function. * java/lang/reflect/natMethod.cc (hack_call): New method. Removed `#if 0' around FFI code. Include <gnu/gcj/RawData.h>. (invoke): Use _Jv_CallNonvirtualMethodA. Throw IllegalArgumentException when argument object and class disagree. (_Jv_GetTypesFromSignature): New function. (getType): Use it. (ObjectClass): New define. (_Jv_CallNonvirtualMethodA): New function. * java/lang/reflect/Method.java (hack_trampoline): New method. (hack_call): New native method. 1999-12-21 Per Bothner <per@bothner.com> * java/lang/natClass.cc (getDeclaredMethods): Correctly compute offset in new Method. From-SVN: r31199
257 lines
6.5 KiB
Makefile
257 lines
6.5 KiB
Makefile
# Makefile.in generated automatically by automake 1.4 from Makefile.am
|
|
|
|
# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
|
|
# This Makefile.in is free software; the Free Software Foundation
|
|
# gives unlimited permission to copy and/or distribute it,
|
|
# with or without modifications, as long as this notice is preserved.
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
# PARTICULAR PURPOSE.
|
|
|
|
|
|
SHELL = @SHELL@
|
|
|
|
srcdir = @srcdir@
|
|
top_srcdir = @top_srcdir@
|
|
VPATH = @srcdir@
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
sbindir = @sbindir@
|
|
libexecdir = @libexecdir@
|
|
datadir = @datadir@
|
|
sysconfdir = @sysconfdir@
|
|
sharedstatedir = @sharedstatedir@
|
|
localstatedir = @localstatedir@
|
|
libdir = @libdir@
|
|
infodir = @infodir@
|
|
mandir = @mandir@
|
|
includedir = @includedir@
|
|
oldincludedir = /usr/include
|
|
|
|
DESTDIR =
|
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
|
|
|
top_builddir = ..
|
|
|
|
ACLOCAL = @ACLOCAL@
|
|
AUTOCONF = @AUTOCONF@
|
|
AUTOMAKE = @AUTOMAKE@
|
|
AUTOHEADER = @AUTOHEADER@
|
|
|
|
INSTALL = @INSTALL@
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
transform = @program_transform_name@
|
|
|
|
NORMAL_INSTALL = :
|
|
PRE_INSTALL = :
|
|
POST_INSTALL = :
|
|
NORMAL_UNINSTALL = :
|
|
PRE_UNINSTALL = :
|
|
POST_UNINSTALL = :
|
|
build_alias = @build_alias@
|
|
build_triplet = @build@
|
|
host_alias = @host_alias@
|
|
host_triplet = @host@
|
|
target_alias = @target_alias@
|
|
target_triplet = @target@
|
|
AM_RUNTESTFLAGS = @AM_RUNTESTFLAGS@
|
|
AR = @AR@
|
|
AS = @AS@
|
|
CC = @CC@
|
|
COMPPATH = @COMPPATH@
|
|
CPP = @CPP@
|
|
CXX = @CXX@
|
|
CXXCPP = @CXXCPP@
|
|
DIVIDESPEC = @DIVIDESPEC@
|
|
DLLTOOL = @DLLTOOL@
|
|
EH_COMMON_INCLUDE = @EH_COMMON_INCLUDE@
|
|
EXCEPTIONSPEC = @EXCEPTIONSPEC@
|
|
EXEEXT = @EXEEXT@
|
|
FORCELIBGCCSPEC = @FORCELIBGCCSPEC@
|
|
GCDEPS = @GCDEPS@
|
|
GCINCS = @GCINCS@
|
|
GCLIBS = @GCLIBS@
|
|
GCOBJS = @GCOBJS@
|
|
GCSPEC = @GCSPEC@
|
|
LD = @LD@
|
|
LIBDATASTARTSPEC = @LIBDATASTARTSPEC@
|
|
LIBGCJ_CFLAGS = @LIBGCJ_CFLAGS@
|
|
LIBGCJ_CXXFLAGS = @LIBGCJ_CXXFLAGS@
|
|
LIBGCJ_JAVAFLAGS = @LIBGCJ_JAVAFLAGS@
|
|
LIBTOOL = @LIBTOOL@
|
|
LN_S = @LN_S@
|
|
MAINT = @MAINT@
|
|
MAKEINFO = @MAKEINFO@
|
|
NM = @NM@
|
|
PACKAGE = @PACKAGE@
|
|
PERL = @PERL@
|
|
RANLIB = @RANLIB@
|
|
SYSTEMSPEC = @SYSTEMSPEC@
|
|
THREADDEPS = @THREADDEPS@
|
|
THREADINCS = @THREADINCS@
|
|
THREADLIBS = @THREADLIBS@
|
|
THREADOBJS = @THREADOBJS@
|
|
THREADSPEC = @THREADSPEC@
|
|
USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@
|
|
VERSION = @VERSION@
|
|
ZDEPS = @ZDEPS@
|
|
ZINCS = @ZINCS@
|
|
ZLIBS = @ZLIBS@
|
|
ZLIBSPEC = @ZLIBSPEC@
|
|
here = @here@
|
|
libgcj_basedir = @libgcj_basedir@
|
|
|
|
AUTOMAKE_OPTIONS = foreign no-installinfo
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
|
|
CONFIG_HEADER = config.h
|
|
CONFIG_CLEAN_FILES =
|
|
DIST_COMMON = ./stamp-h.in Makefile.am Makefile.in config.h.in
|
|
|
|
|
|
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
|
|
|
TAR = tar
|
|
GZIP_ENV = --best
|
|
all: all-redirect
|
|
.SUFFIXES:
|
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
|
cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
|
cd $(top_builddir) \
|
|
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
|
|
|
|
config.h: stamp-h
|
|
@if test ! -f $@; then \
|
|
rm -f stamp-h; \
|
|
$(MAKE) stamp-h; \
|
|
else :; fi
|
|
stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
|
|
cd $(top_builddir) \
|
|
&& CONFIG_FILES= CONFIG_HEADERS=include/config.h \
|
|
$(SHELL) ./config.status
|
|
@echo timestamp > stamp-h 2> /dev/null
|
|
$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/stamp-h.in
|
|
@if test ! -f $@; then \
|
|
rm -f $(srcdir)/stamp-h.in; \
|
|
$(MAKE) $(srcdir)/stamp-h.in; \
|
|
else :; fi
|
|
$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
|
cd $(top_srcdir) && $(AUTOHEADER)
|
|
@echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
|
|
|
|
mostlyclean-hdr:
|
|
|
|
clean-hdr:
|
|
|
|
distclean-hdr:
|
|
-rm -f config.h
|
|
|
|
maintainer-clean-hdr:
|
|
tags: TAGS
|
|
TAGS:
|
|
|
|
|
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
|
|
|
subdir = include
|
|
|
|
distdir: $(DISTFILES)
|
|
here=`cd $(top_builddir) && pwd`; \
|
|
top_distdir=`cd $(top_distdir) && pwd`; \
|
|
distdir=`cd $(distdir) && pwd`; \
|
|
cd $(top_srcdir) \
|
|
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign include/Makefile
|
|
@for file in $(DISTFILES); do \
|
|
d=$(srcdir); \
|
|
if test -d $$d/$$file; then \
|
|
cp -pr $$/$$file $(distdir)/$$file; \
|
|
else \
|
|
test -f $(distdir)/$$file \
|
|
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
|
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
|
fi; \
|
|
done
|
|
info-am:
|
|
info: info-am
|
|
dvi-am:
|
|
dvi: dvi-am
|
|
check-am: all-am
|
|
check: check-am
|
|
installcheck-am:
|
|
installcheck: installcheck-am
|
|
install-info-am:
|
|
install-info: install-info-am
|
|
all-recursive-am: config.h
|
|
$(MAKE) $(AM_MAKEFLAGS) all-recursive
|
|
|
|
install-exec-am:
|
|
install-exec: install-exec-am
|
|
|
|
install-data-am:
|
|
install-data: install-data-am
|
|
|
|
install-am: all-am
|
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
|
install: install-am
|
|
uninstall-am:
|
|
uninstall: uninstall-am
|
|
all-am: Makefile config.h
|
|
all-redirect: all-am
|
|
install-strip:
|
|
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
|
installdirs:
|
|
|
|
|
|
mostlyclean-generic:
|
|
|
|
clean-generic:
|
|
|
|
distclean-generic:
|
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
|
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
|
|
|
maintainer-clean-generic:
|
|
mostlyclean-am: mostlyclean-hdr mostlyclean-generic
|
|
|
|
mostlyclean: mostlyclean-am
|
|
|
|
clean-am: clean-hdr clean-generic mostlyclean-am
|
|
|
|
clean: clean-am
|
|
|
|
distclean-am: distclean-hdr distclean-generic clean-am
|
|
-rm -f libtool
|
|
|
|
distclean: distclean-am
|
|
|
|
maintainer-clean-am: maintainer-clean-hdr maintainer-clean-generic \
|
|
distclean-am
|
|
@echo "This command is intended for maintainers to use;"
|
|
@echo "it deletes files that may require special tools to rebuild."
|
|
|
|
maintainer-clean: maintainer-clean-am
|
|
|
|
.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
|
|
tags distdir info-am info dvi-am dvi check check-am installcheck-am \
|
|
installcheck install-info-am install-info all-recursive-am \
|
|
install-exec-am install-exec install-data-am install-data install-am \
|
|
install uninstall-am uninstall all-redirect all-am all installdirs \
|
|
mostlyclean-generic distclean-generic clean-generic \
|
|
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
|
|
|
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|
.NOEXPORT:
|