Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338189 - Exception thrown selecting primitive xsd's
Summary: Exception thrown selecting primitive xsd's
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: WTP Incubator (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dimitar Donchev CLA
QA Contact: Dimitar Tenev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 04:48 EST by Stanislav Nichev CLA
Modified: 2021-11-18 16:20 EST (History)
1 user (show)

See Also:


Attachments
fix (3.86 KB, patch)
2011-02-25 05:54 EST, Stanislav Nichev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Nichev CLA 2011-02-25 04:48:30 EST
Build Identifier: 

Hi,                                                                   
                                                                      
1. In NWDS, open any existing core datatype.                          
2. Change the classification of the core datatype to Free-style       
datatype.                                                             
3. Insert an element. Now try adding a base type to the datatype node.
4. Select any primitive XSD types in the datatype node. Exception is  
getting thrown.                                                       
5. After the exception, the user is not allowed to refer datatype/xsd 
even for element created.                                             
                                                                      
Note: Log attached.                                                   
                                                                      
Thanks,                                                               
Mahesh                                                                
                                                                      
    Memo                                                              
    24.02.2011 16:53:12      KeshavRao Veerapaneni                    
Hello Colleagues,                                                     
     There is a issue in SetBaseTypeCommand which is causing this     
problem. Please fix this issue. The log is attached with the CSN.     
                                                                      
Best Regards,                                                         
Keshav                                                                


Reproducible: Always
Comment 1 Stanislav Nichev CLA 2011-02-25 05:54:10 EST
Created attachment 189784 [details]
fix

Hi Colleagues,

Please do not use the SetBaseTypeCommand for setting the type of complex types. This is a dead code on our side - we use this command to set the basetype of simple types.

Use the SetStructureTypeBaseTypeCompositeCommand command for setting the type of complex types. This command handles the conversions from complex type simple/complex content to complex/simple content.

Regards,
Stanislav
Comment 2 Dimitar Donchev CLA 2011-02-25 06:22:37 EST
Patch is committed.
Dead code is to be investigated and optionally refactored/removed.
I leave the bugzilla in progres.

Best Regards
Dimitar