Uploaded image for project: 'Lucee Development'
  1. LDEV-1121

Object created by createDynamicProxy() not instanceOf specified interface

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.34
    • Fix Version/s: 5.2.2.6
    • Labels:
    • Environment:

      windows 10 x64

    • Sprint:
      May-June 2017 Sprint

      Description

      If you load java libs in Application.cfc using javaSettings and try to create object which should implement loaded interface - object incorrectly created.

      Example:
      Application.cfc
      this.javaSettings =

      {LoadPaths = ["Path to jar lib"], loadColdFusionClassPath=true, reloadOnChange= true, watchInterval = 100, watchExtensions = "jar,class,xml"}

      ;

      Test code:
      var testObject = createDynamicProxy('component.testComponent', 'interfaceFromJarLib');

      IsInstanceOf(testObject , 'interfaceFromJarLib')
      expected result -> true
      actual result -> false

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              ozavadskyy ozavadskyy
            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: