APAR status
Closed as program error.
Error description
Description: Unknown Types are not handled. Reverse tranformation does not handle any unknown type present i n the C# code. Either, the type is lost or transformation aborts with NullPointerException. IllegalArgumentException: the 'no null' constraint is violated w hen transforming C# to UML with an unknown generic parameter. java.lang.IllegalArgumentException: The 'no null' constraint is violated The 'no null' constraint is violated Transform context stack The 'no null' constraint is violated Transform 1421104308: Element 'Processing field ' was exe cuting source 'com.ibm.xtools.cli.model.impl.FieldImpl@22ca22ca (modifiable: true, generated: false, startLine: 9, startColumn: 9, endLine: 9, endColumn: 41) (documentation: null, name: myGene ricList, attributeSections: null) (modifiers: 512) (constant: fa lse, initializer: null)' (...) Stack trace is: !MESSAGE IRJH0012E Transformation 'C# to UML' aborted during its execution; descriptor id='com.ibm.xtools.transform.csharp.uml.C Sharp-to-UML' !STACK 0 java.lang.IllegalArgumentException: The 'no null' constraint is violated at org.eclipse.emf.common.util.BasicEList.validate(Unknown Sour ce) at org.eclipse.emf.ecore.util.EcoreEList.validate(Unknown Sourc e) at org.eclipse.emf.common.util.BasicEList.addUnique(Unknown Sou rce) at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddUn ique(Unknown Source) at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUniq ue(Unknown Source) at org.eclipse.emf.common.util.BasicEList.add(Unknown Source) at org.eclipse.uml2.common.util.SubsetSupersetEObjectEList.add( Unknown Source) at com.ibm.xtools.transform.csharp.uml.internal.util.TransformU til.createGenericInstantiation(Unknown Source) at com.ibm.xtools.transform.csharp.uml.internal.util.TransformU til.getUMLType(Unknown Source) at com.ibm.xtools.transform.csharp.uml.internal.util.TransformU til.createAttribute(Unknown Source) at com.ibm.xtools.transform.csharp.uml.internal.rules.VariableR ule.createTarget(Unknown Source) at com.ibm.xtools.transform.core.AbstractRule.execute(Unknown S ource) (...) Steps to reproduce: Create a C# solution with a class. Create an attribute of type List?Whatever? (Whatever has to be u nknown type) Transform C# to UML : IllegalArgumentException, the transformati on aborts. Workaround: Correct the C# solution to make the 'Whatever' class known by th e transformation. However this issue is linked with another defect that I will cre ate, in which referenced libraries are not found by RSM. Therefo re the type may be defined in another library and in this case t here is no workaround.
Local fix
Problem summary
IllegalArgumentException: the 'no null' constraint is violated when transforming C# to UML with an unknown generic parameter.
Problem conclusion
Fixed in release 7.5.2.
Temporary fix
Comments
APAR Information
APAR number
PK75663
Reported component name
SW MODELER LIN
Reported component ID
5724I6902
Reported release
705
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2008-11-14
Closed date
2009-04-03
Last modified date
2009-04-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
SW MODELER LIN
Fixed component ID
5724I6902
Applicable component levels
R705 PSN
UP
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSCLKU","label":"Rational Software Modeler"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
03 April 2009