[jboss-jira] [JBoss JIRA] Commented: (JASSIST-110) CtClassType.isModified does not check for edited attributes in the ClassFile
Shigeru Chiba (JIRA)
jira-events at lists.jboss.org
Mon Jun 7 22:53:38 EDT 2010
[ https://jira.jboss.org/browse/JASSIST-110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12534346#action_12534346 ]
Shigeru Chiba commented on JASSIST-110:
---------------------------------------
I guess you obtained a ClassFile object and directly modified it. If you obtain a ClassFile object by CtClass#getClassFile(),
then isModify() should correctly work. However, if you do by getClassFile2(), which should not be used (see javadoc), isModify()
will not work.
> CtClassType.isModified does not check for edited attributes in the ClassFile
> ----------------------------------------------------------------------------
>
> Key: JASSIST-110
> URL: https://jira.jboss.org/browse/JASSIST-110
> Project: Javassist
> Issue Type: Bug
> Affects Versions: 3.11.0.GA
> Reporter: Flavia Rainone
> Assignee: Shigeru Chiba
>
> If you edit an attribute of a CtClass and call isModified, it will return false. It should return true.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list