+
Skip to content

the use of a variable named newField in templates throws a strange exception #26

Open
@LucioMenci

Description

@LucioMenci

Hi,

I wrote this template:

${result:newName(Class)} ${newField} = (${result}) Factory.CreateObject(${result}.class);

I wasn't able to use it because I had this exception:
class org.eclipse.jdt.internal.corext.template.java.JavaContext cannot be cast to class org.eclipse.jdt.internal.corext.template.java.JavaPostfixContext (org.eclipse.jdt.internal.corext.template.java.JavaContext and org.eclipse.jdt.internal.corext.template.java.JavaPostfixContext are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @4d097a89)

I think it could be easier to use if the error explained the situation better.

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载