Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4405919

Improper behaviour of FactoryConfigurationError.getMessage() method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.1
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      1.1fcs
    • CPU:
      sparc
    • OS:
      solaris_2.6
    • Verification:
      Verified

      Description

      It precedes the message with Exception name also.
      The following piece of code:
          public static void main(String str[]) {
              Exception e = new Exception();
              System.out.println("Message:<" + e.getMessage() + ">");
              FactoryConfigurationError fce = new FactoryConfigurationError(e);
              System.out.println("Message:<" + fce.getMessage() + ">");

              e = new Exception("My Message");
              System.out.println("Message:<" + e.getMessage() + ">");
              fce = new FactoryConfigurationError(e);
              System.out.println("Message:<" + fce.getMessage() + ">");
          }
      throws the following output:

      Message:<null>
      Message:<java.lang.Exception>
      Message:<My Message>
      Message:<java.lang.Exception: My Message>

        Attachments

          Activity

            People

            • Assignee:
              rmordani Rajiv Mordani (Inactive)
              Reporter:
              duke J. Duke (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: