summaryrefslogtreecommitdiff
path: root/libjava/java/util/natResourceBundle.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-04 04:15:09 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2001-11-04 04:15:09 +0000
commit8f203a4e3a192f3010235382f9998bb92531bd3e (patch)
treebfb510195ffe6d2346162253badade76808f1b85 /libjava/java/util/natResourceBundle.cc
parent35a3065a3eaa382dc4b1f9e0f8f4c41b81a2014d (diff)
downloadgcc-8f203a4e3a192f3010235382f9998bb92531bd3e.tar.gz
* java/util/ResourceBundle.java (getClassContext): Removed.
(Security): New class, extends SecurityManger. (getBundle): Use Security.getCallingClassLoader instead of getClassContext. * java/util/natResourceBundle.cc: Removed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46761 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/util/natResourceBundle.cc')
-rw-r--r--libjava/java/util/natResourceBundle.cc31
1 files changed, 0 insertions, 31 deletions
diff --git a/libjava/java/util/natResourceBundle.cc b/libjava/java/util/natResourceBundle.cc
deleted file mode 100644
index c9e27b048f0..00000000000
--- a/libjava/java/util/natResourceBundle.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// 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] = &class$;
- elts[1] = elts[0];
-
- return reinterpret_cast< JArray<jclass> *> (a);
-}