Last active
November 15, 2017 12:24
-
-
Save CraicOverflow89/935feebe8fe80342fc5f385c8eb49b31 to your computer and use it in GitHub Desktop.
Potential Bug in Lucee 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view the metadata with SOME_VAR expression included (i'm not seeing the @hint, @param or @return values for the first method) | |
then remove the SOME_VAR line altogether and run it again (then i am seeing the annotations correctly) | |
/* THIS IS OUR CLASS | |
"testClass.cfc" | |
*/ | |
component output = false | |
{ | |
SOME_VAR = "some value" | |
/** | |
* @hint just returns a value | |
* @param value the value to return | |
* @return the value | |
*/ | |
public void function method1(required any value) | |
{ | |
return value | |
} | |
/** | |
* @hint just returns a value | |
* @param value the value to return | |
* @return the value | |
*/ | |
public void function method2(required any value) | |
{ | |
return value | |
} | |
} | |
/* THIS IS THE TEST FILE | |
to inspect method metadata | |
*/ | |
<cfscript> | |
// Execute Test | |
test() | |
private void function test() | |
{ | |
// Create Instance | |
var instance = createObject("testClass") | |
// Inspect Methods | |
writeDump(getMetaData(instance).functions) | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment