Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2124

DynamicClientFactory.createClient API would throw an exception with source path instead of classes path when classes.mkdir() call fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.4
    • 2.1.5, 2.2.1
    • JAXB Databinding
    • None

    Description

      https://svn.apache.org/repos/asf/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java

      The following code is not using the classes path in the exception message when classes.mkdir fails.
      File classes = new File(tmpdir, stem + "-classes");
      if (!classes.mkdir())

      { throw new IllegalStateException("Unable to create working directory " + src.getPath());// change this to classes.getPath() }

      Let me know if I need to submit a patch. Hope this is a simple fix to make.

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            aruld Arul Dhesiaseelan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: