OSDN Git Service

2006-08-14 Mark Wielaard <mark@klomp.org>
[pf3gnuchains/gcc-fork.git] / libjava / ChangeLog
index 194f263..fe6746d 100644 (file)
@@ -1,3 +1,208 @@
+2006-08-14  Mark Wielaard  <mark@klomp.org>
+
+       Imported GNU Classpath 0.92
+       * HACKING: Add more importing hints. Update automake version
+       requirement.
+
+       * configure.ac (gconf-peer): New enable AC argument.
+       Add --disable-gconf-peer and --enable-default-preferences-peer
+       to classpath configure when gconf is disabled.
+       * scripts/makemake.tcl: Set gnu/java/util/prefs/gconf and
+       gnu/java/awt/dnd/peer/gtk to bc. Classify
+       gnu/java/security/Configuration.java as generated source file.
+
+       * gnu/java/lang/management/VMGarbageCollectorMXBeanImpl.java,
+       gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java,
+       gnu/java/lang/management/VMClassLoadingMXBeanImpl.java,
+       gnu/java/lang/management/VMRuntimeMXBeanImpl.java,
+       gnu/java/lang/management/VMMemoryManagerMXBeanImpl.java,
+       gnu/java/lang/management/VMThreadMXBeanImpl.java,
+       gnu/java/lang/management/VMMemoryMXBeanImpl.java,
+       gnu/java/lang/management/VMCompilationMXBeanImpl.java: New VM stub
+       classes.
+       * java/lang/management/VMManagementFactory.java: Likewise.
+       * java/net/VMURLConnection.java: Likewise.
+       * gnu/java/nio/VMChannel.java: Likewise.
+
+       * java/lang/Thread.java (getState): Add stub implementation.
+       * java/lang/Class.java (isEnum): Likewise.
+       * java/lang/Class.h (isEnum): Likewise.
+
+       * gnu/awt/xlib/XToolkit.java (getClasspathTextLayoutPeer): Removed.
+
+       * javax/naming/spi/NamingManager.java: New override for StackWalker
+       functionality.
+
+       * configure, sources.am, Makefile.in, gcj/Makefile.in,
+       include/Makefile.in, testsuite/Makefile.in: Regenerated.
+
+2006-08-14  Gary Benson  <gbenson@redhat.com>
+
+       * java/lang/Thread.java (accessControlState): New field.
+       * java/security/VMAccessControlState.java: New file.
+       * java/security/natVMAccessControlState.cc: Likewise.
+       * java/security/VMAccessController.java
+       (contexts, inGetContext): Removed.
+       (pushContext, popContext, getContext): Use VMAccessControlState.
+       * Makefile.am (nat_source_files): Updated.
+       * sources.am, Makefile.in: Rebuilt.
+
+2006-08-10  Gary Benson  <gbenson@redhat.com>
+
+       * include/java-stack.h (GetAccessControlStack): Change return
+       type.
+       * stacktrace.cc (accesscontrol_trace_fn): Record the number of
+       Java frames encountered.
+       (GetAccessControlStack): Return a flag indicating whether a call to
+       doPrivileged was encountered rather than an array of method names.
+       * java/security/natVMAccessController.cc (getStack): Change return
+       type.
+       * java/security/VMAccessController.java (getStack): Likewise.
+       (getContext): Change to reflect the above.
+
+2006-08-09  Gary Benson  <gbenson@redhat.com>
+
+       * stacktrace.cc (accesscontrol_trace_fn): Skip non-Java frames.
+
+2006-08-09  Gary Benson  <gbenson@redhat.com>
+
+       * java/lang/System.java (setSecurityManager): Javadoc fix.
+       * java/security/VMAccessController.java (getContext): Comment fix.
+
+2006-08-09  Gary Benson  <gbenson@redhat.com>
+
+       * include/java-stack.h (accesscontrol_trace_fn): Declare.
+       (GetAccessControlStack): Likewise.
+       (GetClassMethodStack): Remove.
+       * stacktrace.cc (accesscontrol_trace_fn): New method.
+       (GetAccessControlStack): Likewise.
+       (GetClassMethodStack): Remove.
+       * java/security/natVMAccessController.cc (getStack): Use
+       GetAccessControlStack.
+
+2006-08-07  Gary Benson  <gbenson@redhat.com>
+
+       PR libgcj/28340:
+       * java/lang/ClassLoader.java (clinit): Install a default
+       security manager if java.security.manager is defined.
+       (getParent, getSystemClassLoader): Use the correct stack
+       frame during security checks.
+       * java/net/URLClassLoader.java (findClass): Avoid calling
+       this.toString() during VM initialization.
+       (runtimeInitialized): New method.
+       * java/net/natURLClassLoader.cc: New file.
+       * Makefile.am (nat_source_files): Added the above.
+       * Makefile.in: Rebuilt.
+
+2006-08-07  Gary Benson  <gbenson@redhat.com>
+           Casey Marshall <csm@gnu.org>
+
+       * java/lang/SecurityManager.java (getSecurityContext,
+       checkPermission, checkAccess, checkRead, checkConnect,
+       checkPackageAccess, checkPackageDefinition, checkPackageList):
+       Merge with Classpath.
+       (SecurityContext): Remove.
+
+2006-08-07  Gary Benson  <gbenson@redhat.com>
+
+       * java/security/VMAccessController.java (pushContext, popContext,
+       getContext): Use Thread.currentThread() to determine when we're
+       bootstrapping.
+       (runtimeInitialized): Remove.
+       * java/security/natVMAccessController.cc (runtimeInitialized):
+       Remove.
+
+2006-08-06  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/28491:
+       * configure, include/config.h.in: Rebuilt.
+       * configure.ac: Look for ifaddrs.h, getifaddrs.
+       * java/net/natVMNetworkInterfacePosix.cc (getInterfaces): Use
+       getifaddrs if available.
+
+2006-08-06  Tom Tromey  <tromey@redhat.com>
+
+       PR libgcj/28576:
+       * gnu/java/net/natPlainDatagramSocketImplPosix.cc (connect):
+       Implemented.
+       (disconnect): Likewise.
+       (send): Handle already-connected case.
+
+2006-08-04  Mark Wielaard  <mark@klomp.org>
+
+       * jvmti.cc: Include gcj/method.h.
+
+2006-08-04  Tom Tromey  <tromey@redhat.com>
+
+       * jvmti.cc: Added MAYBE_UNUSED to 'env' parameters.
+       (_Jv_JVMTI_GetObjectSize): Cast _Jv_GetArrayElementFromElementType
+       result to _Jv_uintptr_t.
+
+2006-08-01  Keith Seitz  <keiths@redhat.com>
+
+       * gnu/classpath/jdwp/VMFrame.java: Update to Classpath 0.91.
+       * gnu/classpath/jdwp/VMIdManager.java: Likewise.
+       * gnu/classpath/jdwp/VMMethod.java: Likewise.
+       * gnu/classpath/jdwp/VMVirtualMachine: Likewise.
+       * gnu/classpath/jdwp/natVMFrame.java: New file.
+       * gnu/classpath/jdwp/natVMMethod.java: New file.
+       * gnu/classpath/jdwp/natVMVirtualMachine.java: New file.
+       * Makefile.am (nat_source_files): Add new filles.
+       * Makefile.in: Regenerated.
+
+2006-08-03  Tom Tromey  <tromey@redhat.com>
+
+       * jvmti.cc (REQUIRE_PHASE): New macro.
+       (_Jv_JVMTI_InterruptThread): New function.
+       (_Jv_JVMTI_CreateRawMonitor): Likewise.
+       (_Jv_JVMTI_DestroyRawMonitor): Likewise.
+       (_Jv_JVMTI_RawMonitorEnter): Likewise.
+       (_Jv_JVMTI_RawMonitorExit): Likewise.
+       (_Jv_JVMTI_RawMonitorWait): Likewise.
+       (_Jv_JVMTI_RawMonitorNotify): Likewise.
+       (_Jv_JVMTI_RawMonitorNotifyAll): Likewise.
+       (_Jv_JVMTI_Allocate): Likewise.
+       (_Jv_JVMTI_Deallocate): Likewise.
+       (_Jv_JVMTI_GetClassModifiers): Likewise.
+       (_Jv_JVMTI_GetClassMethods): Likewise.
+       (_Jv_JVMTI_IsInterface): Likewise.
+       (_Jv_JVMTI_IsArrayClass): Likewise.
+       (_Jv_JVMTI_GetClassLoader): Likewise.
+       (_Jv_JVMTI_GetObjectHashCode): Likewise.
+       (_Jv_JVMTI_GetFieldModifiers): Likewise.
+       (_Jv_JVMTI_IsFieldSynthetic): Likewise.
+       (_Jv_JVMTI_GetMethodModifiers): Likewise.
+       (_Jv_JVMTI_IsMethodNative): Likewise.
+       (_Jv_JVMTI_IsMethodSynthetic): Likewise.
+       (_Jv_JVMTI_GetClassLoaderClasses): Likewise.
+       (_Jv_JVMTI_ForceGarbageCollection): Likewise.
+       (_Jv_JVMTI_GetSystemProperty): Likewise.
+       (_Jv_JVMTI_SetSystemProperty): Likewise.
+       (_Jv_JVMTI_GetTime): Likewise.
+       (_Jv_JVMTI_GetAvailableProcessors): Likewise.
+       (_Jv_JVMTI_AddToBootstrapClassLoaderSearch): Likewise.
+       (_Jv_JVMTI_SetVerboseFlag): Likewise.
+       (_Jv_JVMTI_GetObjectSize): Likewise.
+       (_Jv_JVMTI_SetJNIFunctionTable): Likewise.
+       (_Jv_JVMTI_GetJNIFunctionTable): Likewise.
+       (_Jv_JVMTI_Interface): Updated.
+       (NULL_CHECK): New macro.
+
+2006-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       PR libgcj/28546
+       * include/no-threads.h: Declare _Jv_Thread_t as empty class.
+
+2006-08-01  Andreas Tobler  <a.tobler@schweiz.ch>
+
+       * gnu/classpath/natSystemProperties.cc: Add additional check for
+       getpwuid_r on _POSIX_PTHREAD_SEMANTICS.
+       (SystemProperties::insertSystemProperties): Likewise.
+       * java/io/natFilePosix.cc (File::performList): Add
+       additional check for readdir_r on _POSIX_PTHREAD_SEMANTICS.
+       * java/util/natVMTimeZone.cc (VMTimeZone::getSystemTimeZoneId): Add
+       additional check for localtime_r on _POSIX_PTHREAD_SEMANTICS.
+
 2006-07-31  Thomas Fitzsimmons  <fitzsim@redhat.com>
 
        PR libgcj/28312