Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

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

Open
glassfishrobot opened this issue May 6, 2013 · 3 comments
Open

Comments

@glassfishrobot
Copy link
Contributor

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]

@glassfishrobot
Copy link
Contributor Author

Reported by dma_k

@glassfishrobot
Copy link
Contributor Author

Was assigned to yaroska

@glassfishrobot
Copy link
Contributor Author

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

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

1 participant