Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6689

java.beans.PropertyEditorManager

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.0M15
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      all
    • Estimated Complexity:
      Unknown

      Description

      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"; }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vondart dafeng
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified