harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dafeng (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HARMONY-6689) java.beans.PropertyEditorManager
Date Sun, 30 Oct 2011 07:47:32 GMT
java.beans.PropertyEditorManager
--------------------------------

                 Key: HARMONY-6689
                 URL: https://issues.apache.org/jira/browse/HARMONY-6689
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
    Affects Versions: 5.0M15
         Environment: all
            Reporter: dafeng
            Priority: Minor


public static synchronized PropertyEditor findEditor(Class<?> targetType)   directly
append "Editor" to class name: String editorClassName = targetType.getName() + "Editor"; 
Class name can be something lile [La/b/c; or [C. Here if the class is an array, the following
";" must be remove and and then appended behind "Editor;".  Certain VM reject illegal class
names such as "[La/b/c;Editor".
String tempName=targetType.getName();
        String editorClassName =null;//$NON-NLS-1$
        if(tempName.endsWith(";")){
            editorClassName=tempName.substring(0, tempName.length()-1)+"Editor;";
        }else{
            editorClassName=tempName+"Editor";
        }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message