Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LucioMenci opened this issue Aug 5, 2024 · 0 comments

Comments

@LucioMenci
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant