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

Add support for Java7 constructs #3

Open
DennisGrewe opened this issue Dec 12, 2012 · 3 comments
Open

Add support for Java7 constructs #3

DennisGrewe opened this issue Dec 12, 2012 · 3 comments

Comments

@DennisGrewe
Copy link

Hi again,

i have another problem. If i initialize a Map or a List using the new-operator in a source file i got no template of my file. It doesn´t matter if i initialize this in a method taged by @CommentTamplate nor another method or in the top of my source-class.

regards

Dennis

@jjohannes
Copy link
Contributor

That's a strange behavior... Could you attached an example that reproduces the problem?

@DennisGrewe
Copy link
Author

Hi,

i´m sorry. I found out, that commentTemplate does not support Java 7 syntax for generic type inference. For example
List exampleList = new ArrayList<>(); is valid syntax in Java 7 but commentTemplate do not create a template of a source class.

perhabs this could be observed in a new release of commentTemplate.

@ghost ghost assigned jjohannes Dec 13, 2012
@jjohannes
Copy link
Contributor

Sorry, Java7 syntax is not yet supported by JaMoPP (and consequently not by CommentTemplate either).

I will look into this. For now, I am afraid you will have to limit the classes that use CommentTemplate constructs to Java6 syntax.

@jjohannes jjohannes removed their assignment Sep 2, 2016
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

2 participants