Commit 7fc600fc by Michael Koch Committed by Michael Koch

2003-06-27 Michael Koch <konqueror@gmx.de>

	* javax/naming/CompositeName.java
	(serialVersionUID): New member variable.
	* javax/naming/CompoundName.java
	(serialVersionUID): New member variable.
	* javax/naming/InitialContext.java
	(InitialContext): Throws NamingException.
	(init): Likewise.
	* javax/naming/LinkRef.java
	(serialVersionUID): New member variable.
	(gteLinkName): Throws NamingException.
	* javax/naming/NamingException.java
	(serialVersionUID): New member variable.
	* javax/naming/NamingSecurityException.java
	(NamingSecurityException): Made abstract.
	(serialVersionUID): New member variable.
	* javax/naming/ReferralException.java
	(serialVersionUID): New member variable.
	* javax/naming/StringRefAddr.java
	(serialVersionUID): New member variable.
	* javax/naming/directory/BasicAttribute.java:
	Reworked imports.
	(serialVersionUID): New member variable.
	(get): Throws NamingException.
	(getAll): Throws NamingException.
	* javax/naming/directory/BasicAttributes.java:
	Reworked imports.
	(serialVersionUID): New member variable.
	* javax/naming/ldap/UnsolicitedNotificationEvent.java
	(serialVersionUID): New member variable.

From-SVN: r68570
parent 3556d877
2003-06-27 Michael Koch <konqueror@gmx.de> 2003-06-27 Michael Koch <konqueror@gmx.de>
* javax/naming/CompositeName.java
(serialVersionUID): New member variable.
* javax/naming/CompoundName.java
(serialVersionUID): New member variable.
* javax/naming/InitialContext.java
(InitialContext): Throws NamingException.
(init): Likewise.
* javax/naming/LinkRef.java
(serialVersionUID): New member variable.
(gteLinkName): Throws NamingException.
* javax/naming/NamingException.java
(serialVersionUID): New member variable.
* javax/naming/NamingSecurityException.java
(NamingSecurityException): Made abstract.
(serialVersionUID): New member variable.
* javax/naming/ReferralException.java
(serialVersionUID): New member variable.
* javax/naming/StringRefAddr.java
(serialVersionUID): New member variable.
* javax/naming/directory/BasicAttribute.java:
Reworked imports.
(serialVersionUID): New member variable.
(get): Throws NamingException.
(getAll): Throws NamingException.
* javax/naming/directory/BasicAttributes.java:
Reworked imports.
(serialVersionUID): New member variable.
* javax/naming/ldap/UnsolicitedNotificationEvent.java
(serialVersionUID): New member variable.
2003-06-27 Michael Koch <konqueror@gmx.de>
* Makefile.am * Makefile.am
(awt_java_source_files): Added new files: (awt_java_source_files): Added new files:
javax/swing/Popup.java, javax/swing/Popup.java,
......
...@@ -52,6 +52,8 @@ import java.util.Vector; ...@@ -52,6 +52,8 @@ import java.util.Vector;
*/ */
public class CompositeName implements Name, Cloneable, Serializable public class CompositeName implements Name, Cloneable, Serializable
{ {
private static final long serialVersionUID = 1667768148915813118L;
public CompositeName () public CompositeName ()
{ {
elts = new Vector (); elts = new Vector ();
......
...@@ -58,6 +58,8 @@ import java.util.Vector; ...@@ -58,6 +58,8 @@ import java.util.Vector;
*/ */
public class CompoundName implements Name, Cloneable, Serializable public class CompoundName implements Name, Cloneable, Serializable
{ {
private static final long serialVersionUID = 3513100557083972036L;
private CompoundName (Properties syntax) private CompoundName (Properties syntax)
{ {
elts = new Vector (); elts = new Vector ();
......
...@@ -38,6 +38,7 @@ exception statement from your version. */ ...@@ -38,6 +38,7 @@ exception statement from your version. */
package javax.naming; package javax.naming;
import java.applet.Applet;
import java.io.File; import java.io.File;
import java.io.FileInputStream; import java.io.FileInputStream;
import java.io.IOException; import java.io.IOException;
...@@ -46,8 +47,6 @@ import java.net.URL; ...@@ -46,8 +47,6 @@ import java.net.URL;
import java.util.Enumeration; import java.util.Enumeration;
import java.util.Hashtable; import java.util.Hashtable;
import java.util.Properties; import java.util.Properties;
import java.applet.Applet;
import java.util.Hashtable;
import javax.naming.spi.NamingManager; import javax.naming.spi.NamingManager;
public class InitialContext implements Context public class InitialContext implements Context
...@@ -57,22 +56,27 @@ public class InitialContext implements Context ...@@ -57,22 +56,27 @@ public class InitialContext implements Context
protected Hashtable myProps; protected Hashtable myProps;
public InitialContext (Hashtable environment) public InitialContext (Hashtable environment)
throws NamingException
{ {
init (environment); init (environment);
} }
protected InitialContext (boolean lazy) protected InitialContext (boolean lazy)
throws NamingException
{ {
if (! lazy) if (! lazy)
init (null); init (null);
} }
public InitialContext () public InitialContext ()
throws NamingException
{ {
init (null); init (null);
} }
/** @since 1.3 */
protected void init (Hashtable environment) protected void init (Hashtable environment)
throws NamingException
{ {
// FIXME: Is this enough? // FIXME: Is this enough?
final String[] properties = { final String[] properties = {
......
...@@ -46,6 +46,8 @@ import java.io.Serializable; ...@@ -46,6 +46,8 @@ import java.io.Serializable;
*/ */
public class LinkRef extends Reference public class LinkRef extends Reference
{ {
private static final long serialVersionUID = -5386290613498931298L;
public LinkRef (Name name) public LinkRef (Name name)
{ {
this (name.toString ()); this (name.toString ());
...@@ -58,6 +60,7 @@ public class LinkRef extends Reference ...@@ -58,6 +60,7 @@ public class LinkRef extends Reference
} }
public String getLinkName () public String getLinkName ()
throws NamingException
{ {
StringRefAddr sra = (StringRefAddr) get (0); StringRefAddr sra = (StringRefAddr) get (0);
return (String) sra.getContent (); return (String) sra.getContent ();
......
...@@ -55,6 +55,7 @@ import java.io.PrintWriter; ...@@ -55,6 +55,7 @@ import java.io.PrintWriter;
*/ */
public class NamingException extends Exception public class NamingException extends Exception
{ {
private static final long serialVersionUID = -1299181962103167177L;
/** /**
* The root cause of this exception. Might be null. Set by calling * The root cause of this exception. Might be null. Set by calling
......
...@@ -40,8 +40,10 @@ package javax.naming; ...@@ -40,8 +40,10 @@ package javax.naming;
import java.lang.Exception; import java.lang.Exception;
public class NamingSecurityException extends NamingException public abstract class NamingSecurityException extends NamingException
{ {
private static final long serialVersionUID = 5855287647294685775L;
public NamingSecurityException () public NamingSecurityException ()
{ {
super (); super ();
......
...@@ -48,6 +48,8 @@ import java.util.Hashtable; ...@@ -48,6 +48,8 @@ import java.util.Hashtable;
public abstract class ReferralException extends NamingException public abstract class ReferralException extends NamingException
{ {
private static final long serialVersionUID = -2881363844695698876L;
protected ReferralException () protected ReferralException ()
{ {
super (); super ();
......
...@@ -48,6 +48,7 @@ package javax.naming; ...@@ -48,6 +48,7 @@ package javax.naming;
*/ */
public class StringRefAddr extends RefAddr public class StringRefAddr extends RefAddr
{ {
private static final long serialVersionUID = -8913762495138505527L;
/** /**
* The possibly null content of this RefAddr. * The possibly null content of this RefAddr.
......
...@@ -38,8 +38,11 @@ exception statement from your version. */ ...@@ -38,8 +38,11 @@ exception statement from your version. */
package javax.naming.directory; package javax.naming.directory;
import javax.naming.*; import java.util.NoSuchElementException;
import java.util.*; import java.util.Vector;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.OperationNotSupportedException;
/** /**
* @author Tom Tromey <tromey@redhat.com> * @author Tom Tromey <tromey@redhat.com>
...@@ -47,6 +50,8 @@ import java.util.*; ...@@ -47,6 +50,8 @@ import java.util.*;
*/ */
public class BasicAttribute implements Attribute public class BasicAttribute implements Attribute
{ {
private static final long serialVersionUID = 6743528196119291326L;
/** The ID of this attribute. */ /** The ID of this attribute. */
protected String attrID; protected String attrID;
/** True if this attribute's values are ordered. */ /** True if this attribute's values are ordered. */
...@@ -159,6 +164,7 @@ public class BasicAttribute implements Attribute ...@@ -159,6 +164,7 @@ public class BasicAttribute implements Attribute
} }
public Object get () public Object get ()
throws NamingException
{ {
if (values.size () == 0) if (values.size () == 0)
throw new NoSuchElementException ("no values"); throw new NoSuchElementException ("no values");
...@@ -166,11 +172,13 @@ public class BasicAttribute implements Attribute ...@@ -166,11 +172,13 @@ public class BasicAttribute implements Attribute
} }
public Object get (int index) public Object get (int index)
throws NamingException
{ {
return values.get (index); return values.get (index);
} }
public NamingEnumeration getAll () public NamingEnumeration getAll ()
throws NamingException
{ {
return new BasicAttributeEnumeration (); return new BasicAttributeEnumeration ();
} }
......
...@@ -38,8 +38,10 @@ exception statement from your version. */ ...@@ -38,8 +38,10 @@ exception statement from your version. */
package javax.naming.directory; package javax.naming.directory;
import javax.naming.*; import java.util.NoSuchElementException;
import java.util.*; import java.util.Vector;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
/** /**
* @author Tom Tromey <tromey@redhat.com> * @author Tom Tromey <tromey@redhat.com>
...@@ -47,6 +49,8 @@ import java.util.*; ...@@ -47,6 +49,8 @@ import java.util.*;
*/ */
public class BasicAttributes implements Attributes public class BasicAttributes implements Attributes
{ {
private static final long serialVersionUID = 4980164073184639448L;
public BasicAttributes () public BasicAttributes ()
{ {
this (false); this (false);
......
...@@ -37,15 +37,17 @@ exception statement from your version. */ ...@@ -37,15 +37,17 @@ exception statement from your version. */
package javax.naming.ldap; package javax.naming.ldap;
import java.util.EventObject; import java.util.EventObject;
/** /**
* @author Warren Levy <warrenl@redhat.com> * @author Warren Levy <warrenl@redhat.com>
* @date June 5, 2001 * @date June 5, 2001
*/ */
public class UnsolicitedNotificationEvent extends EventObject public class UnsolicitedNotificationEvent extends EventObject
{ {
private static final long serialVersionUID = -2382603380799883705L;
// Serialized fields. // Serialized fields.
private UnsolicitedNotification notice; private UnsolicitedNotification notice;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment