commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36512] - [lang] New feature: enhanced Class.forName version
Date Tue, 06 Sep 2005 12:31:00 GMT
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=36512>.
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=36512





------- Additional Comments From james@carmanconsulting.com  2005-09-06 14:30 -------
Created an attachment (id=16316)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16316&action=view)
A patch to implement the changes

Here's my version of the code.	If everyone is happy with it, I can go ahead
and commit the changes myself.	Please advise.

Note:  I chose to use endsWith() as it is more readable and it's not entirely
obvious to me (or others) that the performance cost is that tremendous.  Also,
I use a regex syntax check at the beginning of the method.  I don't know if
this is the fastest way to do it, but it does check for invalid names in one
statement, so it's quite readable (aside from the nasty regex pattern).

-- 
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


Mime
View raw message