| JMerge Support for Java5 Annotations [message #398054] |
Wed, 25 January 2006 15:17  |
Eclipse User |
|
|
|
Does JMerge have support for Java 5 Annotations? I have been looking but
can't find an answer for the right JMerge target anywhere, so here is an
example:
My JET templates are generating code with java 5 annotations.
/**
* @generated
*/
@Column(name="NM")
public String getName() {
return name;
}
I then use JMerge. Everything is working fine with JMerge except for
annotation. If I change the method body without removing the @gen tag the
code is properly blowna away. But, the same is not true if I change the
annotation.
|
|
|
| Re: JMerge Support for Java5 Annotations [message #398055 is a reply to message #398054] |
Wed, 25 January 2006 15:58   |
Eclipse User |
|
|
|
This is a multi-part message in MIME format.
--------------040804000108030005050902
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
John,
No, this isn't supported yet, but we've started to work on it.
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=124372>
https://bugs.eclipse.org/bugs/show_bug.cgi?id=124372
John Gilbert wrote:
>Does JMerge have support for Java 5 Annotations? I have been looking but
>can't find an answer for the right JMerge target anywhere, so here is an
>example:
>
>My JET templates are generating code with java 5 annotations.
>
> /**
> * @generated
> */
> @Column(name="NM")
> public String getName() {
> return name;
> }
>
>I then use JMerge. Everything is working fine with JMerge except for
>annotation. If I change the method body without removing the @gen tag the
>code is properly blowna away. But, the same is not true if I change the
>annotation.
>
>
>
>
--------------040804000108030005050902
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
John,<br>
<br>
No, this isn't supported yet, but we've started to work on it.<a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124372"><br>
</a>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=124372">https://bugs.eclipse.org/bugs/show_bug.cgi?id=124372</a><br>
</blockquote>
<br>
John Gilbert wrote:
<blockquote cite="middr8meo$7m1$1@utils.eclipse.org" type="cite">
<pre wrap="">Does JMerge have support for Java 5 Annotations? I have been looking but
can't find an answer for the right JMerge target anywhere, so here is an
example:
My JET templates are generating code with java 5 annotations.
/**
* @generated
*/
@Column(name="NM")
public String getName() {
return name;
}
I then use JMerge. Everything is working fine with JMerge except for
annotation. If I change the method body without removing the @gen tag the
code is properly blowna away. But, the same is not true if I change the
annotation.
</pre>
</blockquote>
<br>
</body>
</html>
--------------040804000108030005050902--
|
|
|
|
| Re: JMerge Support for Java5 Annotations [message #412191 is a reply to message #412189] |
Fri, 17 August 2007 07:37  |
Eclipse User |
|
|
|
Catherine,
No, because 2.2 didn't have AST-based support and handling Java 5
annotations doesn't work with JDOM (or at least we never added any
support that would handle them).
Catherine Griffin wrote:
> I know that full support for Java 5 annotations is under dvelopment,
> but is there a way to set up the merge rules on 2.2 so that the
> annotation will be overwritten when the code is merged ?
>
> Thanks, Catherine.
|
|
|
Powered by
FUDForum. Page generated in 0.04322 seconds