Hi folks:
I've found a lot of examples in the internet how to access any kind of java classes via .class.forName. I've tested this in my user macro:
#set ($string="")
#set ($base64=$string.class.forName('java.util.Base64'))
<pre>
base64: $base64.getClass()
</pre>
that results in "$base64.getClass()" and not as expected in "java.util.Base64".
An implicit initialization with "newInstance()" has changed nothing.
#set ($base64=$string.class.forName('java.util.Base64').newInstance())
Has someone an idea, what's wrong here?
I'm using Confluence 7.4.0 Server.
Thanks
Hi René,
I just ran across the same problem. Have you found a solution in the meantime?
Regards,
Ulrik
Hi René,
meanwhile, I found a posting that gave me the impression that the option of using "object.class.forName()" has gone for security reasons. :-(
Regards,
Ulrik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.