river-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter_firmst...@apache.org
Subject svn commit: r1234278 [28/29] - in /river/tck: ./ configs/ doc/ doc/api/ doc/api/com/ doc/api/com/sun/ doc/api/com/sun/jini/ doc/api/com/sun/jini/compat/ doc/api/com/sun/jini/compat/admin1/ doc/api/com/sun/jini/compat/admin2/ doc/api/com/sun/jini/compat...
Date Sat, 21 Jan 2012 07:28:36 GMT
Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr03.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr03.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr03.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr03.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,87 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+
+public class Attr03 extends Attr02 {
+    public Integer i0_03;
+    public Boolean b0_03;
+    public String  s0_03;
+
+    public Attr03() { 
+        super();
+    }
+
+    public Attr03(Integer i0_03,Boolean b0_03,String s0_03) {
+        super();
+        this.i0_03 = i0_03;
+        this.b0_03 = b0_03;
+        this.s0_03 = s0_03;
+    }
+
+    public void setDefaults() { 
+        i0_03 = new Integer(300);
+        b0_03 = new Boolean(false);
+        s0_03 = "default string 302";
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr03.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr03.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr03)obj).i0_03 == i0_03)
+                      || (((Attr03)obj).i0_03.equals(i0_03)) )
+                 && (    (((Attr03)obj).b0_03 == b0_03)
+                      || (((Attr03)obj).b0_03.equals(b0_03)) )
+                 && (    (((Attr03)obj).s0_03 == s0_03)
+                      || (((Attr03)obj).s0_03.equals(s0_03)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr03.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr04.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr04.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr04.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr04.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,88 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+import net.jini.core.entry.Entry;
+
+public class Attr04 implements Entry, Attr {
+    public Integer i0_04;
+    public Boolean b0_04;
+    public String  s0_04;
+
+    public Attr04() {
+        super();
+    }
+
+    public Attr04(Integer i0_04,Boolean b0_04,String s0_04) {
+        super();
+        this.i0_04 = i0_04;
+        this.b0_04 = b0_04;
+        this.s0_04 = s0_04;
+    }
+
+    public void setDefaults() {
+        i0_04 = new Integer(400);
+        b0_04 = new Boolean(false);
+        s0_04 = "default string 402";
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr04.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr04.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr04)obj).i0_04 == i0_04)
+                      || (((Attr04)obj).i0_04.equals(i0_04)) )
+                 && (    (((Attr04)obj).b0_04 == b0_04)
+                      || (((Attr04)obj).b0_04.equals(b0_04)) )
+                 && (    (((Attr04)obj).s0_04 == s0_04)
+                      || (((Attr04)obj).s0_04.equals(s0_04)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr04.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr05.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr05.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr05.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr05.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,104 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+
+public class Attr05 extends Attr04 {
+    public Integer i0_05;
+    public Boolean b0_05;
+    public String  s0_05;
+    public Long    l0_05;
+
+    public Attr05() {
+        super();
+    }
+
+    public Attr05(Integer i0_05,Boolean b0_05,String s0_05,Long l0_05)
+    {
+        super
+          (new Integer((i0_05.intValue())+4),
+           new Boolean(true),
+          "attribute string "+(new Integer((i0_05.intValue())+4+2)) );
+        this.i0_05 = i0_05;
+        this.b0_05 = b0_05;
+        this.s0_05 = s0_05;
+        this.l0_05 = l0_05;
+    }
+
+    public void setDefaults() {
+        super.setDefaults();
+        i0_05 = new Integer(500);
+        b0_05 = new Boolean(false);
+        s0_05 = "default string 502";
+        l0_05 = new Long(503);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr05.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr05.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+  	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr05)obj).i0_05 == i0_05)
+                      || (((Attr05)obj).i0_05.equals(i0_05)) )
+                 && (    (((Attr05)obj).b0_05 == b0_05)
+                      || (((Attr05)obj).b0_05.equals(b0_05)) )
+                 && (    (((Attr05)obj).s0_05 == s0_05)
+                      || (((Attr05)obj).s0_05.equals(s0_05)) )
+                 && (    (((Attr05)obj).l0_05 == l0_05)
+                      || (((Attr05)obj).l0_05.equals(l0_05)) )
+
+                 && (    (((Attr05)obj).i0_04 == i0_04)
+                      || (((Attr05)obj).i0_04.equals(i0_04)) )
+                 && (    (((Attr05)obj).b0_04 == b0_04)
+                      || (((Attr05)obj).b0_04.equals(b0_04)) )
+                 && (    (((Attr05)obj).s0_04 == s0_04)
+                      || (((Attr05)obj).s0_04.equals(s0_04)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr05.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr06.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr06.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr06.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr06.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,88 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+import net.jini.core.entry.Entry;
+
+public class Attr06 implements Entry, Attr {
+    public Integer i0_06;
+    public Boolean b0_06;
+    public String  s0_06;
+
+    public Attr06() {
+        super();
+    }
+
+    public Attr06(Integer i0_06,Boolean b0_06,String s0_06) {
+        super();
+        this.i0_06 = i0_06;
+        this.b0_06 = b0_06;
+        this.s0_06 = s0_06;
+    }
+
+    public void setDefaults() {
+        i0_06 = new Integer(600);
+        b0_06 = new Boolean(false);
+        s0_06 = "default string 602";
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr06.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr06.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr06)obj).i0_06 == i0_06)
+                      || (((Attr06)obj).i0_06.equals(i0_06)) )
+                 && (    (((Attr06)obj).b0_06 == b0_06)
+                      || (((Attr06)obj).b0_06.equals(b0_06)) )
+                 && (    (((Attr06)obj).s0_06 == s0_06)
+                      || (((Attr06)obj).s0_06.equals(s0_06)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr06.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr07.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr07.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr07.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr07.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,119 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+import net.jini.core.entry.Entry;
+
+public class Attr07 implements Entry, Attr {
+    public Integer i0_07;
+    public Boolean b0_07;
+    public String  s0_07;
+    public Long    l0_07;
+
+    public Integer i1_07;
+    public Boolean b1_07;
+    public String  s1_07;
+    public Long    l1_07;
+
+    public Attr07() {
+        super();
+    }
+
+    public Attr07(Integer i0_07,Boolean b0_07,String s0_07,Long l0_07,
+                  Integer i1_07,Boolean b1_07,String s1_07,Long l1_07) {
+        super();
+
+        this.i0_07 = i0_07;
+        this.b0_07 = b0_07;
+        this.s0_07 = s0_07;
+        this.l0_07 = l0_07;
+
+        this.i1_07 = i1_07;
+        this.b1_07 = b1_07;
+        this.s1_07 = s1_07;
+        this.l1_07 = l1_07;
+    }
+
+    public void setDefaults() {
+        i0_07 = new Integer(700);
+        b0_07 = new Boolean(false);
+        s0_07 = "default string 702";
+        l0_07 = new Long(703);
+
+        i1_07 = new Integer(710);
+        b1_07 = new Boolean(false);
+        s1_07 = "default string 712";
+        l1_07 = new Long(713);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr07.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr07.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr07)obj).i0_07 == i0_07)
+                      || (((Attr07)obj).i0_07.equals(i0_07)) )
+                 && (    (((Attr07)obj).b0_07 == b0_07)
+                      || (((Attr07)obj).b0_07.equals(b0_07)) )
+                 && (    (((Attr07)obj).s0_07 == s0_07)
+                      || (((Attr07)obj).s0_07.equals(s0_07)) )
+                 && (    (((Attr07)obj).l0_07 == l0_07)
+                      || (((Attr07)obj).l0_07.equals(l0_07)) )
+
+                 && (    (((Attr07)obj).i1_07 == i1_07)
+                      || (((Attr07)obj).i1_07.equals(i1_07)) )
+                 && (    (((Attr07)obj).b1_07 == b1_07)
+                      || (((Attr07)obj).b1_07.equals(b1_07)) )
+                 && (    (((Attr07)obj).s1_07 == s1_07)
+                      || (((Attr07)obj).s1_07.equals(s1_07)) )
+                 && (    (((Attr07)obj).l1_07 == l1_07)
+                      || (((Attr07)obj).l1_07.equals(l1_07)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr07.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr08.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr08.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr08.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr08.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,144 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+import net.jini.core.entry.Entry;
+
+public class Attr08 implements Entry, Attr {
+    public Integer i0_08;
+    public Boolean b0_08;
+    public String  s0_08;
+    public Long    l0_08;
+
+    public Integer i1_08;
+    public Boolean b1_08;
+    public String  s1_08;
+    public Long    l1_08;
+
+    public Integer i2_08;
+    public Boolean b2_08;
+    public String  s2_08;
+    public Long    l2_08;
+
+    public Attr08() {
+        super();
+    }
+
+    public Attr08(Integer i0_08,Boolean b0_08,String s0_08,Long l0_08,
+                  Integer i1_08,Boolean b1_08,String s1_08,Long l1_08,
+                  Integer i2_08,Boolean b2_08,String s2_08,Long l2_08) {
+        super();
+
+        this.i0_08 = i0_08;
+        this.b0_08 = b0_08;
+        this.s0_08 = s0_08;
+        this.l0_08 = l0_08;
+
+        this.i1_08 = i1_08;
+        this.b1_08 = b1_08;
+        this.s1_08 = s1_08;
+        this.l1_08 = l1_08;
+
+        this.i2_08 = i2_08;
+        this.b2_08 = b2_08;
+        this.s2_08 = s2_08;
+        this.l2_08 = l2_08;
+    }
+
+    public void setDefaults() {
+        i0_08 = new Integer(800);
+        b0_08 = new Boolean(false);
+        s0_08 = "default string 802";
+        l0_08 = new Long(803);
+
+        i1_08 = new Integer(810);
+        b1_08 = new Boolean(false);
+        s1_08 = "default string 812";
+        l1_08 = new Long(813);
+
+        i2_08 = new Integer(820);
+        b2_08 = new Boolean(false);
+        s2_08 = "default string 822";
+        l2_08 = new Long(823);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr08.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr08.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr08)obj).i0_08 == i0_08)
+                      || (((Attr08)obj).i0_08.equals(i0_08)) )
+                 && (    (((Attr08)obj).b0_08 == b0_08)
+                      || (((Attr08)obj).b0_08.equals(b0_08)) )
+                 && (    (((Attr08)obj).s0_08 == s0_08)
+                      || (((Attr08)obj).s0_08.equals(s0_08)) )
+                 && (    (((Attr08)obj).l0_08 == l0_08)
+                      || (((Attr08)obj).l0_08.equals(l0_08)) )
+
+                 && (    (((Attr08)obj).i1_08 == i1_08)
+                      || (((Attr08)obj).i1_08.equals(i1_08)) )
+                 && (    (((Attr08)obj).b1_08 == b1_08)
+                      || (((Attr08)obj).b1_08.equals(b1_08)) )
+                 && (    (((Attr08)obj).s1_08 == s1_08)
+                      || (((Attr08)obj).s1_08.equals(s1_08)) )
+                 && (    (((Attr08)obj).l1_08 == l1_08)
+                      || (((Attr08)obj).l1_08.equals(l1_08)) )
+
+                 && (    (((Attr08)obj).i2_08 == i2_08)
+                      || (((Attr08)obj).i2_08.equals(i2_08)) )
+                 && (    (((Attr08)obj).b2_08 == b2_08)
+                      || (((Attr08)obj).b2_08.equals(b2_08)) )
+                 && (    (((Attr08)obj).s2_08 == s2_08)
+                      || (((Attr08)obj).s2_08.equals(s2_08)) )
+                 && (    (((Attr08)obj).l2_08 == l2_08)
+                      || (((Attr08)obj).l2_08.equals(l2_08)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr08.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr09.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr09.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr09.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr09.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,94 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+import net.jini.core.entry.Entry;
+
+public class Attr09 implements Entry, Attr {
+    public Integer i0_09;
+    public Boolean b0_09;
+    public String  s0_09;
+    public Long    l0_09;
+
+    public Attr09() {
+        super();
+    }
+
+    public Attr09(Integer i0_09,Boolean b0_09,String s0_09,Long l0_09) {
+        super();
+
+        this.i0_09 = i0_09;
+        this.b0_09 = b0_09;
+        this.s0_09 = s0_09;
+        this.l0_09 = l0_09;
+    }
+
+    public void setDefaults() {
+        i0_09 = new Integer(900);
+        b0_09 = new Boolean(false);
+        s0_09 = "default string 902";
+        l0_09 = new Long(903);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr09.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr09.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr09)obj).i0_09 == i0_09)
+                      || (((Attr09)obj).i0_09.equals(i0_09)) )
+                 && (    (((Attr09)obj).b0_09 == b0_09)
+                      || (((Attr09)obj).b0_09.equals(b0_09)) )
+                 && (    (((Attr09)obj).s0_09 == s0_09)
+                      || (((Attr09)obj).s0_09.equals(s0_09)) )
+                 && (    (((Attr09)obj).l0_09 == l0_09)
+                      || (((Attr09)obj).l0_09.equals(l0_09)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr09.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr10.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr10.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr10.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr10.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,122 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+
+public class Attr10 extends Attr09 {
+    public Integer i0_10;
+    public Boolean b0_10;
+    public String  s0_10;
+
+    public Integer i1_10;
+    public Boolean b1_10;
+    public String  s1_10;
+
+    public Attr10() {
+        super();
+    }
+
+    public Attr10(Integer i0_10,Boolean b0_10,String s0_10,
+                  Integer i1_10,Boolean b1_10,String s1_10)
+    {
+        super(new Integer((i0_10.intValue())+4),
+              new Boolean(true),
+              "attribute string "+(new Integer((i0_10.intValue())+4+2)),
+              new Long((i0_10.intValue())+4+3) );
+
+        this.i0_10 = i0_10;
+        this.b0_10 = b0_10;
+        this.s0_10 = s0_10;
+
+        this.i1_10 = i1_10;
+        this.b1_10 = b1_10;
+        this.s1_10 = s1_10;
+    }
+
+    public void setDefaults() {
+        super.setDefaults();
+        i0_10 = new Integer(1000);
+        b0_10 = new Boolean(false);
+        s0_10 = "default string 1002";
+
+        i1_10 = new Integer(1010);
+        b1_10 = new Boolean(false);
+        s1_10 = "default string 1002";
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr10.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr10.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr10)obj).i0_10 == i0_10)
+                      || (((Attr10)obj).i0_10.equals(i0_10)) )
+                 && (    (((Attr10)obj).b0_10 == b0_10)
+                      || (((Attr10)obj).b0_10.equals(b0_10)) )
+                 && (    (((Attr10)obj).s0_10 == s0_10)
+                      || (((Attr10)obj).s0_10.equals(s0_10)) )
+
+                 && (    (((Attr10)obj).i1_10 == i1_10)
+                      || (((Attr10)obj).i1_10.equals(i1_10)) )
+                 && (    (((Attr10)obj).b1_10 == b1_10)
+                      || (((Attr10)obj).b1_10.equals(b1_10)) )
+                 && (    (((Attr10)obj).s1_10 == s1_10)
+                      || (((Attr10)obj).s1_10.equals(s1_10)) )
+
+                 && (    (((Attr10)obj).i0_09 == i0_09)
+                      || (((Attr10)obj).i0_09.equals(i0_09)) )
+                 && (    (((Attr10)obj).b0_09 == b0_09)
+                      || (((Attr10)obj).b0_09.equals(b0_09)) )
+                 && (    (((Attr10)obj).s0_09 == s0_09)
+                      || (((Attr10)obj).s0_09.equals(s0_09)) )
+                 && (    (((Attr10)obj).l0_09 == l0_09)
+                      || (((Attr10)obj).l0_09.equals(l0_09)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr10.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr11.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr11.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr11.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr11.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,174 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+
+public class Attr11 extends Attr10 {
+    public Integer i0_11;
+    public Boolean b0_11;
+    public String  s0_11;
+    public Long    l0_11;
+
+    public Integer i1_11;
+    public Boolean b1_11;
+    public String  s1_11;
+    public Long    l1_11;
+
+    public Integer i2_11;
+    public Boolean b2_11;
+    public String  s2_11;
+    public Long    l2_11;
+
+    public Attr11() {
+        super();
+    }
+
+    public Attr11(Integer i0_11,Boolean b0_11,String s0_11,Long l0_11,
+                  Integer i1_11,Boolean b1_11,String s1_11,Long l1_11,
+                  Integer i2_11,Boolean b2_11,String s2_11,Long l2_11)
+    {
+        super(new Integer((i0_11.intValue())+4),
+              new Boolean(true),
+              "attribute string "+(new Integer((i0_11.intValue())+4+2)),
+
+              new Integer((i1_11.intValue())+4),
+              new Boolean(true),
+             "attribute string "+(new Integer((i1_11.intValue())+4+2)) );
+
+        this.i0_11 = i0_11;
+        this.b0_11 = b0_11;
+        this.s0_11 = s0_11;
+        this.l0_11 = l0_11;
+
+        this.i1_11 = i1_11;
+        this.b1_11 = b1_11;
+        this.s1_11 = s1_11;
+        this.l1_11 = l1_11;
+
+        this.i2_11 = i2_11;
+        this.b2_11 = b2_11;
+        this.s2_11 = s2_11;
+        this.l2_11 = l2_11;
+    }
+
+    public void setDefaults() {
+        super.setDefaults();
+        i0_11 = new Integer(1100);
+        b0_11 = new Boolean(false);
+        s0_11 = "default string 1102";
+        l0_11 = new Long(1103);
+
+        i1_11 = new Integer(1110);
+        b1_11 = new Boolean(false);
+        s1_11 = "default string 1112";
+        l1_11 = new Long(1113);
+
+        i2_11 = new Integer(1120);
+        b2_11 = new Boolean(false);
+        s2_11 = "default string 1122";
+        l2_11 = new Long(1123);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr11.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr11.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr11)obj).i0_11 == i0_11)
+                      || (((Attr11)obj).i0_11.equals(i0_11)) )
+                 && (    (((Attr11)obj).b0_11 == b0_11)
+                      || (((Attr11)obj).b0_11.equals(b0_11)) )
+                 && (    (((Attr11)obj).s0_11 == s0_11)
+                      || (((Attr11)obj).s0_11.equals(s0_11)) )
+                 && (    (((Attr11)obj).l0_11 == l0_11)
+                      || (((Attr11)obj).l0_11.equals(l0_11)) )
+
+                 && (    (((Attr11)obj).i1_11 == i1_11)
+                      || (((Attr11)obj).i1_11.equals(i1_11)) )
+                 && (    (((Attr11)obj).b1_11 == b1_11)
+                      || (((Attr11)obj).b1_11.equals(b1_11)) )
+                 && (    (((Attr11)obj).s1_11 == s1_11)
+                      || (((Attr11)obj).s1_11.equals(s1_11)) )
+                 && (    (((Attr11)obj).l1_11 == l1_11)
+                      || (((Attr11)obj).l1_11.equals(l1_11)) )
+
+                 && (    (((Attr11)obj).i2_11 == i2_11)
+                      || (((Attr11)obj).i2_11.equals(i2_11)) )
+                 && (    (((Attr11)obj).b2_11 == b2_11)
+                      || (((Attr11)obj).b2_11.equals(b2_11)) )
+                 && (    (((Attr11)obj).s2_11 == s2_11)
+                      || (((Attr11)obj).s2_11.equals(s2_11)) )
+                 && (    (((Attr11)obj).l2_11 == l2_11)
+                      || (((Attr11)obj).l2_11.equals(l2_11)) )
+
+                 && (    (((Attr11)obj).i0_10 == i0_10)
+                      || (((Attr11)obj).i0_10.equals(i0_10)) )
+                 && (    (((Attr11)obj).b0_10 == b0_10)
+                      || (((Attr11)obj).b0_10.equals(b0_10)) )
+                 && (    (((Attr11)obj).s0_10 == s0_10)
+                      || (((Attr11)obj).s0_10.equals(s0_10)) )
+
+                 && (    (((Attr11)obj).i1_10 == i1_10)
+                      || (((Attr11)obj).i1_10.equals(i1_10)) )
+                 && (    (((Attr11)obj).b1_10 == b1_10)
+                      || (((Attr11)obj).b1_10.equals(b1_10)) )
+                 && (    (((Attr11)obj).s1_10 == s1_10)
+                      || (((Attr11)obj).s1_10.equals(s1_10)) )
+
+                 && (    (((Attr11)obj).i0_09 == i0_09)
+                      || (((Attr11)obj).i0_09.equals(i0_09)) )
+                 && (    (((Attr11)obj).b0_09 == b0_09)
+                      || (((Attr11)obj).b0_09.equals(b0_09)) )
+                 && (    (((Attr11)obj).s0_09 == s0_09)
+                      || (((Attr11)obj).s0_09.equals(s0_09)) )
+                 && (    (((Attr11)obj).l0_09 == l0_09)
+                      || (((Attr11)obj).l0_09.equals(l0_09)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr11.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr12.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr12.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr12.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr12.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,233 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.attribute;
+
+public class Attr12 extends Attr11 {
+    public Integer i0_12;
+    public Boolean b0_12;
+    public String  s0_12;
+    public Long    l0_12;
+
+    public Integer i1_12;
+    public Boolean b1_12;
+    public String  s1_12;
+    public Long    l1_12;
+
+    public Integer i2_12;
+    public Boolean b2_12;
+    public String  s2_12;
+    public Long    l2_12;
+
+    public Integer i3_12;
+    public Boolean b3_12;
+    public String  s3_12;
+    public Long    l3_12;
+
+    public Attr12() {
+        super();
+    }
+
+    public Attr12(Integer i0_12,Boolean b0_12,String s0_12,Long l0_12,
+                  Integer i1_12,Boolean b1_12,String s1_12,Long l1_12,
+                  Integer i2_12,Boolean b2_12,String s2_12,Long l2_12,
+                  Integer i3_12,Boolean b3_12,String s3_12,Long l3_12)
+    {
+        super(new Integer((i0_12.intValue())+4),
+              new Boolean(true),
+              "attribute string "+(new Integer((i0_12.intValue())+4+2)),
+              new Long((i0_12.intValue())+4+3),
+
+              new Integer((i1_12.intValue())+4),
+              new Boolean(true),
+             "attribute string "+(new Integer((i1_12.intValue())+4+2)),
+              new Long((i1_12.intValue())+4+3),
+
+              new Integer((i2_12.intValue())+4),
+              new Boolean(true),
+             "attribute string "+(new Integer((i2_12.intValue())+4+2)),
+              new Long((i2_12.intValue())+4+3)  );
+
+        this.i0_12 = i0_12;
+        this.b0_12 = b0_12;
+        this.s0_12 = s0_12;
+        this.l0_12 = l0_12;
+
+        this.i1_12 = i1_12;
+        this.b1_12 = b1_12;
+        this.s1_12 = s1_12;
+        this.l1_12 = l1_12;
+
+        this.i2_12 = i2_12;
+        this.b2_12 = b2_12;
+        this.s2_12 = s2_12;
+        this.l2_12 = l2_12;
+
+        this.i3_12 = i3_12;
+        this.b3_12 = b3_12;
+        this.s3_12 = s3_12;
+        this.l3_12 = l3_12;
+    }
+
+    public void setDefaults() {
+        super.setDefaults();
+        i0_12 = new Integer(1200);
+        b0_12 = new Boolean(false);
+        s0_12 = "default string 1202";
+        l0_12 = new Long(1203);
+
+        i1_12 = new Integer(1210);
+        b1_12 = new Boolean(false);
+        s1_12 = "default string 1212";
+        l1_12 = new Long(1213);
+
+        i2_12 = new Integer(1220);
+        b2_12 = new Boolean(false);
+        s2_12 = "default string 1222";
+        l2_12 = new Long(1223);
+
+        i3_12 = new Integer(1230);
+        b3_12 = new Boolean(false);
+        s3_12 = "default string 1232";
+        l3_12 = new Long(1233);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if ( (obj.getClass()).equals(Attr12.class) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    public boolean matches(Object obj) {
+        try {
+            if ( this.equals(obj) ) {
+                return true;
+            } else if ( (Attr12.class).isAssignableFrom(obj.getClass()) ) {
+                return fieldsMatch(obj);
+	    } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+
+    private boolean fieldsMatch(Object obj) {
+        try {
+            if (    (    (((Attr12)obj).i0_12 == i0_12)
+                      || (((Attr12)obj).i0_12.equals(i0_12)) )
+                 && (    (((Attr12)obj).b0_12 == b0_12)
+                      || (((Attr12)obj).b0_12.equals(b0_12)) )
+                 && (    (((Attr12)obj).s0_12 == s0_12)
+                      || (((Attr12)obj).s0_12.equals(s0_12)) )
+                 && (    (((Attr12)obj).l0_12 == l0_12)
+                      || (((Attr12)obj).l0_12.equals(l0_12)) )
+
+                 && (    (((Attr12)obj).i1_12 == i1_12)
+                      || (((Attr12)obj).i1_12.equals(i1_12)) )
+                 && (    (((Attr12)obj).b1_12 == b1_12)
+                      || (((Attr12)obj).b1_12.equals(b1_12)) )
+                 && (    (((Attr12)obj).s1_12 == s1_12)
+                      || (((Attr12)obj).s1_12.equals(s1_12)) )
+                 && (    (((Attr12)obj).l1_12 == l1_12)
+                      || (((Attr12)obj).l1_12.equals(l1_12)) )
+
+                 && (    (((Attr12)obj).i2_12 == i2_12)
+                      || (((Attr12)obj).i2_12.equals(i2_12)) )
+                 && (    (((Attr12)obj).b2_12 == b2_12)
+                      || (((Attr12)obj).b2_12.equals(b2_12)) )
+                 && (    (((Attr12)obj).s2_12 == s2_12)
+                      || (((Attr12)obj).s2_12.equals(s2_12)) )
+                 && (    (((Attr12)obj).l2_12 == l2_12)
+                      || (((Attr12)obj).l2_12.equals(l2_12)) )
+
+                 && (    (((Attr12)obj).i3_12 == i3_12)
+                      || (((Attr12)obj).i3_12.equals(i3_12)) )
+                 && (    (((Attr12)obj).b3_12 == b3_12)
+                      || (((Attr12)obj).b3_12.equals(b3_12)) )
+                 && (    (((Attr12)obj).s3_12 == s3_12)
+                      || (((Attr12)obj).s3_12.equals(s3_12)) )
+                 && (    (((Attr12)obj).l3_12 == l3_12)
+                      || (((Attr12)obj).l3_12.equals(l3_12)) )
+
+                 && (    (((Attr12)obj).i0_11 == i0_11)
+                      || (((Attr12)obj).i0_11.equals(i0_11)) )
+                 && (    (((Attr12)obj).b0_11 == b0_11)
+                      || (((Attr12)obj).b0_11.equals(b0_11)) )
+                 && (    (((Attr12)obj).s0_11 == s0_11)
+                      || (((Attr12)obj).s0_11.equals(s0_11)) )
+                 && (    (((Attr12)obj).l0_11 == l0_11)
+                      || (((Attr12)obj).l0_11.equals(l0_11)) )
+
+                 && (    (((Attr12)obj).i1_11 == i1_11)
+                      || (((Attr12)obj).i1_11.equals(i1_11)) )
+                 && (    (((Attr12)obj).b1_11 == b1_11)
+                      || (((Attr12)obj).b1_11.equals(b1_11)) )
+                 && (    (((Attr12)obj).s1_11 == s1_11)
+                      || (((Attr12)obj).s1_11.equals(s1_11)) )
+                 && (    (((Attr12)obj).l1_11 == l1_11)
+                      || (((Attr12)obj).l1_11.equals(l1_11)) )
+
+                 && (    (((Attr12)obj).i2_11 == i2_11)
+                      || (((Attr12)obj).i2_11.equals(i2_11)) )
+                 && (    (((Attr12)obj).b2_11 == b2_11)
+                      || (((Attr12)obj).b2_11.equals(b2_11)) )
+                 && (    (((Attr12)obj).s2_11 == s2_11)
+                      || (((Attr12)obj).s2_11.equals(s2_11)) )
+                 && (    (((Attr12)obj).l2_11 == l2_11)
+                      || (((Attr12)obj).l2_11.equals(l2_11)) )
+
+                 && (    (((Attr12)obj).i0_10 == i0_10)
+                      || (((Attr12)obj).i0_10.equals(i0_10)) )
+                 && (    (((Attr12)obj).b0_10 == b0_10)
+                      || (((Attr12)obj).b0_10.equals(b0_10)) )
+                 && (    (((Attr12)obj).s0_10 == s0_10)
+                      || (((Attr12)obj).s0_10.equals(s0_10)) )
+
+                 && (    (((Attr12)obj).i1_10 == i1_10)
+                      || (((Attr12)obj).i1_10.equals(i1_10)) )
+                 && (    (((Attr12)obj).b1_10 == b1_10)
+                      || (((Attr12)obj).b1_10.equals(b1_10)) )
+                 && (    (((Attr12)obj).s1_10 == s1_10)
+                      || (((Attr12)obj).s1_10.equals(s1_10)) )
+
+                 && (    (((Attr12)obj).i0_09 == i0_09)
+                      || (((Attr12)obj).i0_09.equals(i0_09)) )
+                 && (    (((Attr12)obj).b0_09 == b0_09)
+                      || (((Attr12)obj).b0_09.equals(b0_09)) )
+                 && (    (((Attr12)obj).s0_09 == s0_09)
+                      || (((Attr12)obj).s0_09.equals(s0_09)) )
+                 && (    (((Attr12)obj).l0_09 == l0_09)
+                      || (((Attr12)obj).l0_09.equals(l0_09)) )
+               ) {
+                return true;
+            } else {
+                return false;
+	    }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/attribute/Attr12.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface00.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Interface00.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Interface00.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Interface00.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,20 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+public interface Interface00{}
+

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface00.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface01.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Interface01.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Interface01.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Interface01.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,20 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+public interface Interface01{}
+

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface01.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface02.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Interface02.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Interface02.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Interface02.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,20 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+public interface Interface02{}
+

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface02.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface03.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Interface03.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Interface03.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Interface03.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,20 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+public interface Interface03{}
+

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface03.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface04.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Interface04.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Interface04.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Interface04.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,20 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+public interface Interface04{}
+

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Interface04.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service00.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service00.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service00.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service00.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,41 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import java.io.Serializable;
+public class Service00 implements Interface00, Interface01,
+	Interface02, Serializable {
+    public int i;
+    public Service00(int i) {
+        this.i = i;
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service00.class))
+                        && (((Service00)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service00.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service01.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service01.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service01.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service01.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,40 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import java.io.Serializable;
+
+public class Service01 extends Service00 implements Serializable{
+    public Service01(int i) {
+        super(i);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+            return true;
+            } else if (    ((obj.getClass()).equals(Service01.class))
+                        && (((Service01)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service01.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service02.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service02.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service02.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service02.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,43 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import java.io.Serializable;
+import com.sun.jini.compat.test.lookup.service.Interface00;
+public class Service02 implements Serializable,
+                                  Interface00
+{
+    public int i;
+    public Service02(int i) {
+        this.i = i;
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service02.class))
+                        && (((Service02)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service02.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service03.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service03.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service03.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service03.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,42 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import com.sun.jini.compat.test.lookup.service.Interface01;
+import com.sun.jini.compat.test.lookup.service.Service02;
+public class Service03  extends    Service02
+                        implements Interface01
+{
+    public Service03(int i) {
+        super(i);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service03.class))
+                        && (((Service03)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service03.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service04.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service04.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service04.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service04.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,43 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import java.io.Serializable;
+import com.sun.jini.compat.test.lookup.service.Interface01;
+public class Service04 implements Serializable,
+                                  Interface01
+{
+    public int i;
+    public Service04(int i) {
+        this.i = i;
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service04.class))
+                        && (((Service04)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service04.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service05.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service05.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service05.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service05.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,44 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import com.sun.jini.compat.test.lookup.service.Interface02;
+import com.sun.jini.compat.test.lookup.service.Interface03;
+import com.sun.jini.compat.test.lookup.service.Service04;
+public class Service05 extends     Service04
+                        implements Interface02,
+                                   Interface03
+{
+    public Service05(int i) {
+        super(i);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service05.class))
+                        && (((Service05)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service05.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service06.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service06.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service06.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service06.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,43 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import java.io.Serializable;
+import com.sun.jini.compat.test.lookup.service.Interface02;
+public class Service06 implements Serializable,
+                                  Interface02
+{
+    public int i;
+    public Service06(int i) {
+        this.i = i;
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service06.class))
+                        && (((Service06)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service06.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service07.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service07.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service07.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service07.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,46 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import com.sun.jini.compat.test.lookup.service.Interface00;
+import com.sun.jini.compat.test.lookup.service.Interface01;
+import com.sun.jini.compat.test.lookup.service.Interface03;
+import com.sun.jini.compat.test.lookup.service.Service06;
+public class Service07 extends    Service06
+                        implements Interface00,
+                                   Interface01,
+                                   Interface03
+{
+    public Service07(int i) {
+        super(i);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service07.class))
+                        && (((Service07)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service07.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service08.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service08.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service08.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service08.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,43 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import java.io.Serializable;
+import com.sun.jini.compat.test.lookup.service.Interface03;
+public class Service08 implements Serializable,
+                                  Interface03
+{
+    public int i;
+    public Service08(int i) {
+        this.i = i;
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service08.class))
+                        && (((Service08)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service08.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/test/lookup/service/Service09.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/test/lookup/service/Service09.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/test/lookup/service/Service09.java (added)
+++ river/tck/src/com/sun/jini/compat/test/lookup/service/Service09.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,48 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.test.lookup.service;
+import com.sun.jini.compat.test.lookup.service.Interface00;
+import com.sun.jini.compat.test.lookup.service.Interface01;
+import com.sun.jini.compat.test.lookup.service.Interface02;
+import com.sun.jini.compat.test.lookup.service.Interface04;
+import com.sun.jini.compat.test.lookup.service.Service08;
+public class Service09 extends    Service08
+                        implements Interface00,
+                                   Interface01,
+                                   Interface02,
+                                   Interface04
+{
+    public Service09(int i) {
+        super(i);
+    }
+
+    public boolean equals(Object obj) {
+        try {
+            if ( this == obj ) {
+                return true;
+            } else if (    ((obj.getClass()).equals(Service09.class))
+                        && (((Service09)obj).i == i) ) {
+                return true;
+            } else {
+                return false;
+            }
+        } catch (NullPointerException e) {
+            return false;
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/test/lookup/service/Service09.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: river/tck/src/com/sun/jini/compat/thread/TaskManager.java
URL: http://svn.apache.org/viewvc/river/tck/src/com/sun/jini/compat/thread/TaskManager.java?rev=1234278&view=auto
==============================================================================
--- river/tck/src/com/sun/jini/compat/thread/TaskManager.java (added)
+++ river/tck/src/com/sun/jini/compat/thread/TaskManager.java Sat Jan 21 07:28:27 2012
@@ -0,0 +1,265 @@
+/*
+ * 
+ * Copyright 2005 Sun Microsystems, Inc.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ * 	http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * 
+ */
+package com.sun.jini.compat.thread;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Collection;
+import java.util.Collections;
+
+/**
+ * A task manager manages a single queue of tasks, and some number of
+ * worker threads.  New tasks are added to the tail of the queue.  Each
+ * thread loops, taking a task from the queue and running it.  Each
+ * thread looks for a task by starting at the head of the queue and
+ * taking the first task (that is not already being worked on) that is
+ * not required to run after any of the tasks that precede it in
+ * the queue (including tasks that are currently being worked on).
+ *
+ * @author Sun Microsystems, Inc.
+ *
+ */
+public class TaskManager {
+
+    /** The interface that tasks must implement */
+    public interface Task extends Runnable {
+	/**
+	 * Return true if this task must be run after at least one task
+	 * in the given task list with an index less than size (size may be
+	 * less then tasks.size()).  Using List.get will be more efficient
+	 * than List.iterator.
+	 *
+	 * @param tasks the tasks to consider.  A read-only List, with all
+	 * elements instanceof Task.
+	 * @param size elements with index less than size should be considered
+	 */
+	boolean runAfter(List tasks, int size);
+    }
+
+    /** Active and pending tasks */
+    protected final ArrayList tasks = new ArrayList();
+    /** Index of the first pending task; all earlier tasks are active */
+    protected int firstPending = 0;
+    /** Read-only view of tasks */
+    protected final List roTasks = Collections.unmodifiableList(tasks);
+    /** Active threads */
+    protected final List threads = new ArrayList();
+    /** Maximum number of threads allowed */
+    protected final int maxThreads;
+    /** Idle time before a thread should exit */
+    protected final long timeout;
+    /** Threshold for creating new threads */
+    protected final float loadFactor;
+    /** True if manager has been terminated */
+    protected boolean terminated = false;
+
+    /**
+     * Create a task manager with maxThreads = 10, timeout = 15 seconds,
+     * and loadFactor = 3.0.
+     */
+    public TaskManager() {
+	this(10, 1000 * 15, 3.0f);
+    }
+
+    /**
+     * Create a task manager.
+     *
+     * @param maxThreads maximum number of threads to use on tasks
+     * @param timeout idle time before a thread exits 
+     * @param loadFactor threshold for creating new threads.  A new
+     * thread is created if the total number of tasks (both active
+     * and pending) exceeds the number of threads times the loadFactor,
+     * and the maximum number of threads has not been reached.
+     */
+    public TaskManager(int maxThreads, long timeout, float loadFactor) {
+	this.maxThreads = maxThreads;
+	this.timeout = timeout;
+	this.loadFactor = loadFactor;
+    }
+
+    /**
+     * Add a new task if it is not equal to (using the equals method)
+     * to any existing active or pending task.
+     */
+    public synchronized void addIfNew(Task t) {
+	if (!tasks.contains(t))
+	    add(t);
+    }
+
+    /** Add a new task. */
+    public synchronized void add(Task t) {
+	tasks.add(t);
+	pokeThread();
+    }
+
+    /** Add all tasks in a collection, in iterator order. */
+    public synchronized void addAll(Collection c) {
+	tasks.addAll(c);
+	for (int i = c.size(); --i >= 0; ) {
+	    pokeThread();
+	}
+    }
+
+    /**
+     * Create a new thread if the threshold is exceeded and the maximum
+     * number of threads has not yet been reached, else notify a waiting
+     * thread (if any).
+     */
+    private void pokeThread() {
+	if (threads.size() < maxThreads && needThread()) {
+	    Thread th = new TaskThread();
+	    threads.add(th);
+	    th.start();
+	} else {
+	    notify();
+	}
+    }
+
+    /** Return true if a new thread should be created (ignoring maxThreads). */
+    protected boolean needThread() {
+	return (tasks.size() > loadFactor * threads.size());
+    }
+
+    /**
+     * Remove a task if it is pending (not active).  Object identity (==)
+     * is used, not the equals method.  Returns true if the task was
+     * removed.
+     */
+    public synchronized boolean removeIfPending(Task t) {
+	return removeTask(t, firstPending);
+    }
+
+    /*
+     * Remove a task if it is pending or active.  If it is active,
+     * interrupt the thread executing the task, but do not wait for
+     * the thread to terminate.  Object identity (==) is used, not the
+     * equals method.  Returns true if the task was removed.
+     */
+    public synchronized boolean remove(Task t) {
+	return removeTask(t, 0);
+    }
+
+    /**
+     * Remove a task if it has index >= min.  If it is active,
+     * interrupt the thread executing the task.
+     */
+    private boolean removeTask(Task t, int min) {
+	for (int i = tasks.size(); --i >= min; ) {
+	    if (tasks.get(i) == t) {
+		tasks.remove(i);
+		if (i < firstPending) {
+		    firstPending--;
+		    for (int j = threads.size(); --j >= 0; ) {
+			TaskThread thread = (TaskThread)threads.get(j);
+			if (thread.task == t) {
+			    thread.interrupt();
+			    break;
+			}
+		    }
+		}
+		return true;
+	    }
+	}
+	return false;
+    }
+
+    /**
+     * Interrupt all threads, and stop processing tasks.  Only getPending
+     * should be used afterwards.
+     */
+    public synchronized void terminate() {
+	terminated = true;
+	for (int i = threads.size(); --i >= 0; ) {
+	    ((Thread)threads.get(i)).interrupt();
+	}
+    }
+
+    /** Return all pending tasks.  A new list is returned each time. */
+    public synchronized ArrayList getPending() {
+	ArrayList tc = (ArrayList)tasks.clone();
+	for (int i = firstPending; --i >= 0; ) {
+	    tc.remove(0);
+	}
+	return tc;
+    }
+
+    private class TaskThread extends Thread {
+
+	/** The task being run, if any */
+	public Task task = null;
+
+	public TaskThread() {
+	    super("task");
+	    setDaemon(true);
+	}
+
+	/**
+	 * Find the next task that can be run, and mark it taken by
+	 * moving firstPending past it (and moving the task in front of
+	 * any pending tasks that are skipped due to execution constraints).
+	 * If a task is found, set task to it and return true.
+	 */
+	private boolean takeTask() {
+	    int size = tasks.size();
+	    for (int i = firstPending; i < size; i++) {
+		Task t = (Task)tasks.get(i);
+		if (!t.runAfter(roTasks, i)) {
+		    if (i > firstPending) {
+			tasks.remove(i);
+			tasks.add(firstPending, t);
+		    }
+		    firstPending++;
+		    task = t;
+		    return true;
+		}
+	    }
+	    return false;
+	}
+
+	public void run() {
+	    try {
+		while (true) {
+		    synchronized (TaskManager.this) {
+			if (terminated)
+			    return;
+			if (task != null) {
+			    for (int i = firstPending; --i >= 0; ) {
+				if (tasks.get(i) == task) {
+				    tasks.remove(i);
+				    firstPending--;
+				    break;
+				}
+			    }
+			    task = null;
+			    interrupted(); // clear interrupt bit
+			}
+			if (!takeTask()) {
+			    TaskManager.this.wait(timeout);
+			    if (terminated || !takeTask()) {
+				threads.remove(threads.indexOf(this));
+				return;
+			    }
+			}
+		    }
+		    task.run();
+		}
+	    } catch (InterruptedException e) {
+	    }
+	}
+    }
+}

Propchange: river/tck/src/com/sun/jini/compat/thread/TaskManager.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message