[JBoss JIRA] Created: (JASSIST-73) getAvailableAnnotations() sometimes returns null for the same method in unittesting
by Christian Ã
kerström (JIRA)
getAvailableAnnotations() sometimes returns null for the same method in unittesting
-----------------------------------------------------------------------------------
Key: JASSIST-73
URL: https://jira.jboss.org/jira/browse/JASSIST-73
Project: Javassist
Issue Type: Bug
Environment: Eclipse Ganymede, Windows Vista, jUnit 3.4...
Reporter: Christian Ã
kerström
Assignee: Shigeru Chiba
We have developed a jUnit testcase that test the annotation for an existing method.
Our own classloader first loads the class that contains the method and then tries to get any available annotations.
Our annotated method looks like this, using our own NotificationEmitter.class.
@NotificationEmitter(description = "Notifies xxx", type = xxx.class)
public void method() {
...
}
Sometimes when we call method.getAvailableAnnotations(); it returns
When it fails seems to be very nondeterministic.
Any help would be appreciated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months
[JBoss JIRA] Created: (JBMESSAGING-1494) UUIDGenerator does not use a different network address
by Jeff Mesnil (JIRA)
UUIDGenerator does not use a different network address
------------------------------------------------------
Key: JBMESSAGING-1494
URL: https://jira.jboss.org/jira/browse/JBMESSAGING-1494
Project: JBoss Messaging
Issue Type: Feature Request
Reporter: Jeff Mesnil
Assignee: Tim Fox
Fix For: 2.0.0 Beta
UUIDGenerator always use InetAddress.getLocalHost() for its address which is likely to return the same result on different machines thus compromising the uniqueness of the UUID generated by different machines at the same time.
Instead, we should use an address returned by NetworkInterface to retrieve an address different from the local address.
In the case the UUIDGenerator is called from restricted clients (e.g. applets, no network permissions), we'd fall back on using the InetAddress.getLocalHost() but the uniqueness would not be guaranteed
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 5 months