Skip to Content.
Sympa Menu

shibboleth-dev - Re: Bug in AAAttribute.java

Subject: Shibboleth Developers

List archive

Re: Bug in AAAttribute.java


Chronological Thread 
  • From: Walter Hoehn <>
  • To:
  • Cc:
  • Subject: Re: Bug in AAAttribute.java
  • Date: Fri, 1 Oct 2004 15:33:44 -0500

See http://bugzilla.internet2.edu/show_bug.cgi?id=122

-Walter

On Sep 29, 2004, at 5:44 AM,

wrote:

I'm not sure if this is the best way to report bugs, but I can't see any
link on the Shibboleth web site, so please pardon the spam.

The equals method in AAAttribute uses a reference comparison for the
attribute name (String) rather than an object comparison. See below for the
snippet.

if (name != ((AAAttribute) object).name) {
return false;
}

Since the resolver tests use hard-coded string values for attribute names,
the compiler smartly uses the same String instance and this bug is not
discovered by the unit tests.

- Vishal

--
Vishal Goenka
SunGard SCT
Advisory Technical Architect, Luminis Solutions
+91 80 511 42767 (Office)
+91 98455 46487 (Mobile)
Time Zone: GMT +5:30

www.sungardsct.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature



  • Re: Bug in AAAttribute.java, Walter Hoehn, 10/01/2004

Archive powered by MHonArc 2.6.16.

Top of Page