You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "dafeng (Created) (JIRA)" <ji...@apache.org> on 2011/10/30 08:47:32 UTC

[jira] [Created] (HARMONY-6689) java.beans.PropertyEditorManager

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