Import GNU Classpath (libgcj-import-20070727).
libjava/ 2007-08-04 Matthias Klose <doko@ubuntu.com> Import GNU Classpath (libgcj-import-20070727). * Regenerate class and header files. * Regenerate auto* files. * include/jvm.h: * jni-libjvm.cc (Jv_JNI_InvokeFunctions): Rename type. * jni.cc (_Jv_JNIFunctions, _Jv_JNI_InvokeFunctions): Likewise. * jni.cc (_Jv_JNI_CallAnyMethodA, _Jv_JNI_CallAnyVoidMethodA, _Jv_JNI_CallMethodA, _Jv_JNI_CallVoidMethodA, _Jv_JNI_CallStaticMethodA, _Jv_JNI_CallStaticVoidMethodA, _Jv_JNI_NewObjectA, _Jv_JNI_SetPrimitiveArrayRegion): Constify jvalue parameter. * java/lang/reflect/natMethod.cc (_Jv_CallAnyMethodA): Likewise. * java/lang/VMFloat.java (toString, parseFloat): New. * gnu/awt/xlib/XToolkit.java (setAlwaysOnTop, isModalityTypeSupported, isModalExclusionTypeSupported): New (stub only). * gnu/awt/xlib/XCanvasPeer.java (requestFocus): Likewise. * gnu/awt/xlib/XFramePeer.java (updateMinimumSize, updateIconImages, updateFocusableWindowState, setModalBlocked, getBoundsPrivate, setAlwaysOnTop): Likewise. * gnu/awt/xlib/XFontPeer.java (canDisplay): Update signature. * scripts/makemake.tcl: Ignore gnu/javax/sound/sampled/gstreamer, ignore javax.sound.sampled.spi.MixerProvider, ignore .in files. * HACKING: Mention --enable-gstreamer-peer, removal of generated files. libjava/classpath/ 2007-08-04 Matthias Klose <doko@ubuntu.com> * java/util/EnumMap.java (clone): Add cast. From-SVN: r127204
This commit is contained in:
parent
2c3de459b6
commit
f06a83c0b2
522 changed files with 13385 additions and 4867 deletions
|
@ -58,7 +58,7 @@ import java.io.Serializable;
|
|||
*
|
||||
* @author unknown
|
||||
*/
|
||||
public final class MarshalledObject
|
||||
public final class MarshalledObject<T>
|
||||
implements Serializable
|
||||
{
|
||||
// The following fields are from Java API Documentation "Serialized form"
|
||||
|
@ -74,7 +74,7 @@ public final class MarshalledObject
|
|||
* @param obj the object to marshal
|
||||
* @throws IOException if an I/O error during serialization occurs.
|
||||
*/
|
||||
public MarshalledObject(Object obj) throws IOException
|
||||
public MarshalledObject(T obj) throws IOException
|
||||
{
|
||||
ByteArrayOutputStream objStream = new ByteArrayOutputStream();
|
||||
RMIMarshalledObjectOutputStream stream =
|
||||
|
@ -136,14 +136,14 @@ public final class MarshalledObject
|
|||
* @throws ClassNotFoundException if the class of the deserialized object
|
||||
* cannot be found.
|
||||
*/
|
||||
public Object get() throws IOException, ClassNotFoundException
|
||||
public T get() throws IOException, ClassNotFoundException
|
||||
{
|
||||
if (objBytes == null)
|
||||
return null;
|
||||
|
||||
RMIMarshalledObjectInputStream stream =
|
||||
new RMIMarshalledObjectInputStream(objBytes, locBytes);
|
||||
return stream.readObject();
|
||||
return (T) stream.readObject();
|
||||
}
|
||||
|
||||
public int hashCode()
|
||||
|
|
|
@ -103,7 +103,7 @@ public abstract class Activatable
|
|||
* @throws ActivationException if the activation failed
|
||||
* @throws RemoteException if the remote call failed.
|
||||
*/
|
||||
protected Activatable(String codebase, MarshalledObject data,
|
||||
protected Activatable(String codebase, MarshalledObject<?> data,
|
||||
boolean restart, int port) throws ActivationException,
|
||||
RemoteException
|
||||
{
|
||||
|
@ -133,7 +133,7 @@ public abstract class Activatable
|
|||
* @throws ActivationException if the activation failed
|
||||
* @throws RemoteException if the remote call failed.
|
||||
*/
|
||||
protected Activatable(String codebase, MarshalledObject data,
|
||||
protected Activatable(String codebase, MarshalledObject<?> data,
|
||||
boolean restart, int port, RMIClientSocketFactory csf,
|
||||
RMIServerSocketFactory ssf) throws ActivationException,
|
||||
RemoteException
|
||||
|
@ -314,7 +314,7 @@ public abstract class Activatable
|
|||
* @throws RemoteException if the registration or export fails
|
||||
*/
|
||||
public static ActivationID exportObject(Remote obj, String location,
|
||||
MarshalledObject data,
|
||||
MarshalledObject<?> data,
|
||||
boolean restart, int port)
|
||||
throws ActivationException, RemoteException
|
||||
{
|
||||
|
|
|
@ -80,7 +80,7 @@ public final class ActivationDesc
|
|||
/**
|
||||
* The object specific intitalization data.
|
||||
*/
|
||||
private MarshalledObject data;
|
||||
private MarshalledObject<?> data;
|
||||
|
||||
/**
|
||||
* The start mode.
|
||||
|
@ -95,7 +95,7 @@ public final class ActivationDesc
|
|||
* @param location the code base URL
|
||||
* @param data the object initialization data, contained in a marshalled form
|
||||
*/
|
||||
public ActivationDesc(String className, String location, MarshalledObject data)
|
||||
public ActivationDesc(String className, String location, MarshalledObject<?> data)
|
||||
throws ActivationException
|
||||
{
|
||||
this(ActivationGroup.currentGroupID(), className, location, data, false);
|
||||
|
@ -115,7 +115,7 @@ public final class ActivationDesc
|
|||
* object is normally activated on demand).
|
||||
*/
|
||||
public ActivationDesc(String className, String location,
|
||||
MarshalledObject data, boolean restart)
|
||||
MarshalledObject<?> data, boolean restart)
|
||||
throws ActivationException
|
||||
{
|
||||
this(ActivationGroup.currentGroupID(), className, location, data, restart);
|
||||
|
@ -131,7 +131,7 @@ public final class ActivationDesc
|
|||
* @param data the object initialization data, contained in a marshalled form
|
||||
*/
|
||||
public ActivationDesc(ActivationGroupID groupID, String className,
|
||||
String location, MarshalledObject data)
|
||||
String location, MarshalledObject<?> data)
|
||||
{
|
||||
this(groupID, className, location, data, false);
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public final class ActivationDesc
|
|||
* object is normally activated on demand).
|
||||
*/
|
||||
public ActivationDesc(ActivationGroupID groupID, String className,
|
||||
String location, MarshalledObject data, boolean restart)
|
||||
String location, MarshalledObject<?> data, boolean restart)
|
||||
{
|
||||
this.groupid = groupID;
|
||||
this.classname = className;
|
||||
|
@ -184,7 +184,7 @@ public final class ActivationDesc
|
|||
return location;
|
||||
}
|
||||
|
||||
public MarshalledObject getData()
|
||||
public MarshalledObject<?> getData()
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
|
|
@ -314,7 +314,8 @@ public abstract class ActivationGroup
|
|||
* @throws UnknownObjectException if such object is not registered
|
||||
* @throws RemoteException on remote call (to monitor) error
|
||||
*/
|
||||
protected void activeObject(ActivationID id, MarshalledObject mObject)
|
||||
protected void activeObject(ActivationID id,
|
||||
MarshalledObject<? extends Remote> mObject)
|
||||
throws ActivationException, UnknownObjectException, RemoteException
|
||||
{
|
||||
if (monitor!=null)
|
||||
|
|
|
@ -199,7 +199,7 @@ public final class ActivationGroupDesc
|
|||
/**
|
||||
* The group initialization data.
|
||||
*/
|
||||
final MarshalledObject data;
|
||||
final MarshalledObject<?> data;
|
||||
|
||||
/**
|
||||
* The path to the group jre and the parameters of this jre, may be
|
||||
|
@ -252,7 +252,7 @@ public final class ActivationGroupDesc
|
|||
* options.
|
||||
*/
|
||||
public ActivationGroupDesc(String aClassName, String aLocation,
|
||||
MarshalledObject aData, Properties aProperties,
|
||||
MarshalledObject<?> aData, Properties aProperties,
|
||||
ActivationGroupDesc.CommandEnvironment environment)
|
||||
{
|
||||
className = aClassName;
|
||||
|
@ -288,7 +288,7 @@ public final class ActivationGroupDesc
|
|||
*
|
||||
* @return the group intialization data in the marshalled form.
|
||||
*/
|
||||
public MarshalledObject getData()
|
||||
public MarshalledObject<?> getData()
|
||||
{
|
||||
return data;
|
||||
}
|
||||
|
|
|
@ -68,6 +68,6 @@ public interface ActivationInstantiator
|
|||
* @throws ActivationException if the activation fails
|
||||
* @throws RemoteException if the remote call fails
|
||||
*/
|
||||
MarshalledObject newInstance (ActivationID id, ActivationDesc desc)
|
||||
MarshalledObject<? extends Remote> newInstance (ActivationID id, ActivationDesc desc)
|
||||
throws ActivationException, RemoteException;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ public interface ActivationMonitor extends Remote
|
|||
* @throws UnknownObjectException is such object is not known in this group
|
||||
* @throws RemoteException if remote call fails
|
||||
*/
|
||||
void activeObject (ActivationID id, MarshalledObject obj)
|
||||
void activeObject (ActivationID id, MarshalledObject<? extends Remote> obj)
|
||||
throws UnknownObjectException, RemoteException;
|
||||
|
||||
/**
|
||||
|
|
|
@ -67,6 +67,6 @@ public interface Activator
|
|||
* @throws ActivationException if the activation has failed due other reason
|
||||
* @throws RemoteException if the remote call has failed.
|
||||
*/
|
||||
MarshalledObject activate (ActivationID id, boolean force)
|
||||
MarshalledObject<? extends Remote> activate (ActivationID id, boolean force)
|
||||
throws ActivationException, UnknownObjectException, RemoteException;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue