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 36666] - [lang] EnumUtils.getEnum() doesn't work well in 1.5
Date Thu, 15 Sep 2005 14:03:54 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=36666>.
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=36666





------- Additional Comments From igorl@qlusters.com  2005-09-15 16:03 -------
It is possible to load Enum static fields using code below:

           Field[] fields = enumCl.getFields();
            if(fields.length>0){
                try {
                    fields[0].get(null); //get value of first static  - actual
access to this class instance
                } catch (Exception e) {
                    log.trace("Can't access static field of " + enumCl);
                } 
            }


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