jaxb-codemodel
jaxb-codemodel copied to clipboard
No modifiers for root package class
if we pass class name with no package to constructor JCodeModel._class and use modifier (final or abstract), they will be skipped
**Bar.java** public JDefinedClass _class(int mods, String fullyqualifiedName,ClassType t) throws JClassAlreadyExistsException {
int idx = fullyqualifiedName.lastIndexOf('.');
if( idx<0 ) return rootPackage()._class(fullyqualifiedName);
else
return _package(fullyqualifiedName.substring(0,idx))
._class(mods, fullyqualifiedName.substring(idx+1), t );
}
Affected Versions
[2.4]
Reported by anisimovt
phax said: This issue has been fixed in https://github.com/phax/jcodemodel if you are still interested
This issue was imported from java.net JIRA CODEMODEL-23