[ 
https://issues.apache.org/jira/browse/VELOCITY-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121203#comment-18121203
 ] 

Claude Brisson edited comment on VELOCITY-1003 at 9/30/26 3:02 PM:
-------------------------------------------------------------------

Noted.

There is an easy workaround, though.
{code:java}
#set($name = $class.name)
#set($dot = $name.lastIndexOf('.'))
#if($dot >= 0)
  #set($name = $name.substring($dot + 1))
#end{code}


was (Author: claude):
Noted.

There is an easy workaround, though.
{code:java}
#set($name = $class.name)
#set($dot = $name.lastIndexOf('.'))
#if($dot >= 0)
  #set($name = $name.substring($dot + 1)
#end{code}

> Class.getSimpleName is not allowed with SecureUberspector
> ---------------------------------------------------------
>
>                 Key: VELOCITY-1003
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-1003
>             Project: Velocity
>          Issue Type: Bug
>            Reporter: Peter SEVERIN
>            Priority: Minor
>         Attachments: 
> OT6888--Allow-ClassgetSimpleName-method-in-secure-in.patch
>
>
> Class.getName is explicitly allowed in SecureIntrospectorImpl so it would be 
> logical that Class.getSimpleName is allowed too.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to