You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Clement Escoffier (JIRA)" <ji...@apache.org> on 2008/10/02 19:41:44 UTC
[jira] Commented: (FELIX-739) iPojo and annotations support when
manipulating
[ https://issues.apache.org/jira/browse/FELIX-739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636407#action_12636407 ]
Clement Escoffier commented on FELIX-739:
-----------------------------------------
Just an update.
I'm investigating how to migrate annotations. The idea is to collect annotation during the first visit and then to recreate them when I write the iPOJO method.
Clement
> iPojo and annotations support when manipulating
> -----------------------------------------------
>
> Key: FELIX-739
> URL: https://issues.apache.org/jira/browse/FELIX-739
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-0.8.0
> Environment: Java 6 / Windows XP
> Reporter: David GAY
> Assignee: Clement Escoffier
>
> The iPojo byte code manipulation replace real public method with private one.
> For exemple :
> public class MyClass {
> public void myMethod() {
> //my code here
> }
> }
> is transformed into :
> public class MyClass {
> public void myMethod() {
> // iPojo code here
> }
> private void _myMethod() {
> // my code here
> }
> }
> There is no problem here. But if I have annotations on the myMethod(), there are moved also to the private one,
> for exemple :
> public class MyClass {
> @MyAnnotation
> public void myMethod() {
> //my code here
> }
> }
> is transformed into :
> public class MyClass {
> public void myMethod() {
> // iPojo code here
> }
> @MyAnnotation
> private void _myMethod() {
> // my code here
> }
> }
> I think that method annotations (other than iPojo ones) should stay on the public one to have a correct behavior.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.