diff --git a/test/tickets/LDEV3672.cfc b/test/tickets/LDEV3672.cfc new file mode 100644 index 0000000000..88bc2857a7 --- /dev/null +++ b/test/tickets/LDEV3672.cfc @@ -0,0 +1,24 @@ +component extends="org.lucee.cfml.test.LuceeTestCase" skip=true { + + function beforeAll(){ + variables.uri = createURI("LDEV3672"); + } + + function run( testResults , testBox ) { + + describe( title='LDEV-3672' , body=function(){ + + it( title='dumping a cfc errors with final' , body=function() { + local.result = _InternalRequest( + template:"#variables.uri#/LDEV3672.cfm" + ); + expect(local.result.filecontent.trim()).toBe('success'); + }); + }); + } + + private string function createURI(string calledName){ + var baseURI="/test/#listLast(getDirectoryFromPath(getCurrentTemplatepath()),"\/")#/"; + return baseURI & "" & calledName; + } +} \ No newline at end of file diff --git a/test/tickets/LDEV3672/Application.cfc b/test/tickets/LDEV3672/Application.cfc new file mode 100644 index 0000000000..18c56ed620 --- /dev/null +++ b/test/tickets/LDEV3672/Application.cfc @@ -0,0 +1,3 @@ +component { + this.name = "LDEV3672"; +} diff --git a/test/tickets/LDEV3672/LDEV3672.cfm b/test/tickets/LDEV3672/LDEV3672.cfm new file mode 100644 index 0000000000..164ce9b4da --- /dev/null +++ b/test/tickets/LDEV3672/LDEV3672.cfm @@ -0,0 +1,11 @@ + + cfc = new LDEV3672_final(); + try { + savecontent variable="ignore"{ + dump( cfc ); + } + echo( "success" ); + } catch( e ){ + echo( e.stacktrace ); + } + \ No newline at end of file diff --git a/test/tickets/LDEV3672/LDEV3672_final.cfc b/test/tickets/LDEV3672/LDEV3672_final.cfc new file mode 100644 index 0000000000..9dde36bfa9 --- /dev/null +++ b/test/tickets/LDEV3672/LDEV3672_final.cfc @@ -0,0 +1,3 @@ +component { + final this.test = "test" +} \ No newline at end of file