You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a component has been removed then its xtuml pair will be dirty. Then in CodeGenerationPhase we try to get dirty xtuml components' pairs but for removed xtuml component it will add null to the list of cpp components. When we iterate on this list and call executeCppCodeGeneration with null cpp component (the pair of the removed xtuml component) the method will throw IllegalArgumentException.
The problematic code snippet from CodeGenerationPhase
val dirtyComponents = changeMonitor.dirtyXTComponents
val cppComponents = dirtyComponents.map[ xtComponent |
mcToken.toolchainManager.engine.cppComponents.getAllValuesOfcppComponent(xtComponent).head
]
if(mcToken.cppSourceFileContents ==null) {
mcToken.cppSourceFileContents =<CPPSourceFile, CharSequence>newHashMap
}
cppComponents.forEach[ cppComponent |
val cppSourceFileContentsForComponent = mcToken.toolchainManager.executeCppCodeGeneration(cppComponent)
mcToken.cppSourceFileContents.putAll(cppSourceFileContentsForComponent)
]
Note: Will high level package deletion also cause problems?
The text was updated successfully, but these errors were encountered:
If a component has been removed then its xtuml pair will be dirty. Then in CodeGenerationPhase we try to get dirty xtuml components' pairs but for removed xtuml component it will add null to the list of cpp components. When we iterate on this list and call executeCppCodeGeneration with null cpp component (the pair of the removed xtuml component) the method will throw IllegalArgumentException.
The problematic code snippet from CodeGenerationPhase
Note: Will high level package deletion also cause problems?
The text was updated successfully, but these errors were encountered: