Skip to main content



      Home
Home » Modeling » EMF » JMerge Support for Java5 Annotations
JMerge Support for Java5 Annotations [message #398054] Wed, 25 January 2006 15:17 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 #412189 is a reply to message #398055] Fri, 17 August 2007 06:14 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: JMerge Support for Java5 Annotations [message #412191 is a reply to message #412189] Fri, 17 August 2007 07:37 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Disallow deletion of a node in the tree
Next Topic:how to select next element after deleting one
Goto Forum:
  


Current Time: Wed Nov 05 07:46:23 EST 2025

Powered by FUDForum. Page generated in 0.03406 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top