[JBoss JIRA] Created: (HIBERNATE-75) Wrong implementation of method retainAll in PersistentSet
by Andrey Peristyy (JIRA)
Wrong implementation of method retainAll in PersistentSet
---------------------------------------------------------
Key: HIBERNATE-75
URL: http://jira.jboss.com/jira/browse/HIBERNATE-75
Project: Hibernate
Issue Type: Bug
Reporter: Andrey Peristyy
Assigned To: Steve Ebersole
The method from org.hibernate.collection.PersistentSet adds all elements from coll to the current set. But it must retains only the elements in this set that are contained in the specified collection. As it stated in javadoc for java.util.Set.
Method from PersistentSet:
public boolean retainAll(Collection coll) {
initialize( true );
if ( set.addAll( coll ) ) {
dirty();
return true;
}
else {
return false;
}
}
Correct implementation from java.util.AbstractCollection:
public boolean retainAll(Collection<?> c) {
boolean modified = false;
Iterator<E> e = iterator();
while (e.hasNext()) {
if (!c.contains(e.next())) {
e.remove();
modified = true;
}
}
return modified;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Updated: (JBREM-521) Organize configuration of client side socket/server socket factories and server side socket/server socket factories.
by Ron Sigal (JIRA)
[ http://jira.jboss.com/jira/browse/JBREM-521?page=all ]
Ron Sigal updated JBREM-521:
----------------------------
Fix Version/s: 2.4.0.CR1 (Pinto)
(was: 2.4.0.Beta1 (Pinto))
> Organize configuration of client side socket/server socket factories and server side socket/server socket factories.
> --------------------------------------------------------------------------------------------------------------------
>
> Key: JBREM-521
> URL: http://jira.jboss.com/jira/browse/JBREM-521
> Project: JBoss Remoting
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Affects Versions: 2.2.0.Alpha3 (Bluto)
> Reporter: Ron Sigal
> Assigned To: Ron Sigal
> Fix For: 2.4.0.CR1 (Pinto)
>
>
> JBREM-520 concerns organizing configuration of socket factories and sever socket factories in the context of a Connector. This issue concerns the more general problem of organizing the configuration of factories in the contexts of both Clients and Connectors. There are two aspects of configuration through the Client:
> 1) configuration of socket factories used by client invokers, and
> 2) configuration of server socket factories used by server invokers in callback Connectors created by calls to Client.addListener().
> and these need to be aligned with the two aspects of configuration through the Connector:
> 1) configuration of server socket factories used by server invokers, and
> 2) configuration of socket factories used by callback client invokers created on the server side in response to calls to Client.addListener().
> For example, there should be a Client.setServerInvoker() method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Updated: (JBREM-373) clean up lease handling on server side
by Ron Sigal (JIRA)
[ http://jira.jboss.com/jira/browse/JBREM-373?page=all ]
Ron Sigal updated JBREM-373:
----------------------------
Fix Version/s: 2.4.0.CR1 (Pinto)
(was: 2.4.0.Beta1 (Pinto))
Assignee: (was: Tom Elrod)
> clean up lease handling on server side
> --------------------------------------
>
> Key: JBREM-373
> URL: http://jira.jboss.com/jira/browse/JBREM-373
> Project: JBoss Remoting
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: general
> Affects Versions: 2.0.0.Beta1
> Reporter: Tom Elrod
> Priority: Minor
> Fix For: 2.4.0.CR1 (Pinto)
>
>
> In issue JBREM-372, put in a hack for cleaning up lease map within the ServerInvoker where would pass the clientLeases variable from ServerInvoker to the constructor of Lease. Then when LeaseTimerTask fired and event that client was dead, would remove itself from the ServerInvoker's lease map (by client id).
> Should not have to pass in the lease map from ServerInvoker. Maybe better approach would be to have ServerInvoker add itself as listener, so when the connection failure event fired, it would be notified and remove the lease from the clientLeases map itself.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months
[JBoss JIRA] Updated: (JBREM-302) remote dynamic marshall loading not working on linux
by Ron Sigal (JIRA)
[ http://jira.jboss.com/jira/browse/JBREM-302?page=all ]
Ron Sigal updated JBREM-302:
----------------------------
Fix Version/s: 2.4.0.CR1 (Pinto)
(was: 2.4.0.Beta1 (Pinto))
Assignee: (was: Tom Elrod)
> remote dynamic marshall loading not working on linux
> ----------------------------------------------------
>
> Key: JBREM-302
> URL: http://jira.jboss.com/jira/browse/JBREM-302
> Project: JBoss Remoting
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: marshall
> Affects Versions: 1.4.0 beta
> Environment: Linux, JDK 1.4
> Reporter: Tom Elrod
> Priority: Minor
> Fix For: 2.4.0.CR1 (Pinto)
>
> Attachments: SocketMarshallerLoadingTestCase-out.txt
>
>
> The following test cases fail on Linux (and not on Windows):
> org.jboss.test.remoting.marshall.dynamic.remote.http.HTTPMarshallerLoadingTestCase
> org.jboss.test.remoting.marshall.dynamic.remote.socket.SocketMarshallerLoadingTestCase
> Test output for SocketMarshallerLoadingTestCase attached, but says that server can not find the class:
> org.jboss.test.remoting.marshall.dynamic.remote.socket.TestObject
> However, confirmed that this class is within the jboss-remoting-loading-tests.jar, which is being set on the classpath (as shown in the output log).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
18 years, 5 months