You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/01/07 20:59:04 UTC

DO NOT REPLY [Bug 37894] - [codec] Using US_ENGLISH static in Soundex causes NPE

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37894


tobrien@discursive.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From tobrien@discursive.com  2006-01-07 20:59 -------
Yes, you are correct, if you move the static variables around, your test cases
pass.  I've added you test case to the mix and changed the order of the static
variables.  US_ENGLISH now works.

Thanks

(In reply to comment #0)
> If I generate a soundex like so:
>   Soundex.US_ENGLISH.soundex( "Williams" )
> I get a NullPointerException.
> 
> But if I use the following:
>   new Soundex().soundex( "Williams" )
> everything works fine.
> 
> I think the order of initialization of statics may be to blame.  I'll attach a
> test case.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org