This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 133757

Summary: Assign from string literal to another type should be caught by validation
Product: soa Reporter: Vladimir Yaroslavskiy <yaroslavskiy>
Component: BPEL ValidationAssignee: Vladimir Yaroslavskiy <yaroslavskiy>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Test project

Description Vladimir Yaroslavskiy 2008-04-23 12:17:28 UTC
Assign from string literal to another type should be caught by validation.

<variable name="Variable1" messageType="ns1:message1"/>

<assign name="Assign1">
  <copy>
    <from>'string'</from>
    <to variable="Variable1" part="part1"/> 
  </copy>
</assign>

<message name="message1">
  <part name="part1" type="xsd:int"/>
</message>

see attached project.
Comment 1 Vladimir Yaroslavskiy 2008-04-23 12:18:43 UTC
Created attachment 60599 [details]
Test project
Comment 2 Vladimir Yaroslavskiy 2008-04-24 08:41:45 UTC
-------- Original Message --------
Subject: Re: BPEL assignment of a xsd:string to a message part (xsd:int) does not throw any error
Date: Wed, 23 Apr 2008 23:35:07 -0700
From: Murali Pottlapelli <Murali.Pottlapelli@Sun.COM>
To: Vladimir Yaroslavskiy <Vladimir.Yaroslavskiy@Sun.COM>

Please do not mark it as error, it should be warning.

Regards
Murali
Comment 3 Vladimir Yaroslavskiy 2008-05-05 13:17:24 UTC
fixed: 2774a54bd67d