diff options
author | Tom Tromey <tromey@redhat.com> | 2001-08-31 21:31:20 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2001-08-31 21:31:20 +0000 |
commit | 7a95ae6b51b590a8b8b9ee06768204c5d6a4a90f (patch) | |
tree | 57cf10eba5f71e6072958cb8ef14beb8842f8b91 /libjava/java/util/natResourceBundle.cc | |
parent | fb9282f91f0bc4f90f30cd6fa5a18c91f0e7e32a (diff) | |
download | gcc-7a95ae6b51b590a8b8b9ee06768204c5d6a4a90f.zip gcc-7a95ae6b51b590a8b8b9ee06768204c5d6a4a90f.tar.gz gcc-7a95ae6b51b590a8b8b9ee06768204c5d6a4a90f.tar.bz2 |
Makefile.in: Rebuilt.
* Makefile.in: Rebuilt.
* Makefile.am (ordinary_java_source_files): Removed
EnumerationChain, added DoubleEnumeration.
(nat_source_files): Added natResourceBundle.cc.
* java/util/natResourceBundle.cc: New file.
* gnu/java/util/DoubleEnumeration.java: New file.
* gnu/gcj/util/EnumerationChain.java: Removed.
* java/beans/VetoableChangeSupport.java: Merged with Classpath.
* java/util/ResourceBundle.java: Merged with Classpath.
* java/util/StringTokenizer.java: Merged with Classpath.
* java/util/Locale.java: Merged with Classpath.
* java/util/Random.java: Merged with Classpath.
* java/util/PropertyResourceBundle.java: Merged with Classpath.
* java/util/ListResourceBundle.java: Merged with Classpath.
* java/util/ConcurrentModificationException.java: Re-merged with
Classpath.
* java/util/EmptyStackException.java: Likewise.
* java/util/MissingResourceException.java: Likewise.
* java/util/NoSuchElementException.java: Likewise.
* java/util/TooManyListenersException.java: Likewise.
From-SVN: r45335
Diffstat (limited to 'libjava/java/util/natResourceBundle.cc')
-rw-r--r-- | libjava/java/util/natResourceBundle.cc | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/libjava/java/util/natResourceBundle.cc b/libjava/java/util/natResourceBundle.cc new file mode 100644 index 0000000..0c560ea --- /dev/null +++ b/libjava/java/util/natResourceBundle.cc @@ -0,0 +1,31 @@ +// natResourceBundle.cc - Native code for ResourceBundle class. + +/* Copyright (C) 2001 Free Software Foundation + + This file is part of libgcj. + +This software is copyrighted work licensed under the terms of the +Libgcj License. Please consult the file "LIBGCJ_LICENSE" for +details. */ + +#include <config.h> + +#include <gcj/cni.h> +#include <jvm.h> +#include <java/util/ResourceBundle.h> +#include <java/lang/Class.h> +#include <java/lang/ClassLoader.h> + +JArray<jclass> * +java::util::ResourceBundle::getClassContext () +{ + // FIXME: we currently lack the capability to correctly implement + // this method. So we fake it by telling ResourceBundle that we + // only have the system class loader. + jobjectArray a = JvNewObjectArray (2, &java::lang::Class::class$, NULL); + jobject *elts = elements (a); + elts[0] = java::lang::ClassLoader::getSystemClassLoader (); + elts[1] = elts[0]; + + return reinterpret_cast< JArray<jclass> *> (a); +} |