javaee / jaxb-v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add API support to move model class to another class or package

glassfishrobot opened this issue · comments

Currently it is not possible to manipulate with Code Model in a way that JDefinedClass is moved to another class or package. For that:

  • JDefinedClass and JPackage should implement method _class(JClass anotherClass), i.e. opportunity to add existing class.
  • The owner of anotherClass should be set to new container, thus there is a need for JDefinedClass#setOuter(JClassContainer newOuter)
  • If class is moved to package, its static modifier should be reset, thus there is a need for JMod#setStatic(boolean newValue).

Affected Versions

[2.2.6]

Reported by dma_k

Was assigned to yaroska

This issue was imported from java.net JIRA JAXB-957