You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For the support of java 7, spoon must support diamond syntax. It support already (yeah!) but not totally. Here is an example to illustrate the "problem":
So, when spoon detects a diamond syntax, it replaces with the right implementation. So the result is valid and support java 7 but the output isn't java 7.
Good thing or not? I would like reviews about this from the community. :)
The text was updated successfully, but these errors were encountered:
Well, this issue was discussed internal. We think we don't want to have the correct java 7 syntax for the diamond syntax. Unlike of multi catch, diamond is syntactic sugar, not really a new feature. Maybe, this can be a feature interesting when we will refactors the DefaultJavaPrettyPrinter but, for now, we will keep this current result.
For the support of java 7, spoon must support diamond syntax. It support already (yeah!) but not totally. Here is an example to illustrate the "problem":
DiamondExample
is a class ready to be spooned.The output of spoon is:
So, when spoon detects a diamond syntax, it replaces with the right implementation. So the result is valid and support java 7 but the output isn't java 7.
Good thing or not? I would like reviews about this from the community. :)
The text was updated successfully, but these errors were encountered: