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 86220 - Renaming/refactoring of Message doesn't change property alias and causes ClassCastException
Summary: Renaming/refactoring of Message doesn't change property alias and causes Clas...
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 20:27 UTC by jlautz
Modified: 2006-10-05 14:18 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace. (3.24 KB, application/octet-stream)
2006-09-29 20:33 UTC, jlautz
Details
WSDL file before steps in scenario (2.26 KB, application/octet-stream)
2006-09-29 20:34 UTC, jlautz
Details
WSDL file after steps in scenario + save. (2.47 KB, application/octet-stream)
2006-09-29 20:35 UTC, jlautz
Details
Stack trace for changing the property name. (3.59 KB, application/octet-stream)
2006-09-29 20:54 UTC, jlautz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jlautz 2006-09-29 20:27:59 UTC
Seen on Windows XP with NB 55 060928 and JDK 1.5.0_07:

1. Create a new WSDL document by choosing all the the defaults in the WSDL wizard.
2. Select Extensibility Elements, and choose Add -> Property.
3. In the properties pane for the new property, select whatever type or element
you want.
4. Select Extensibility Elements, and choose Add -> Property Alias.
5. In the properties pane for the new property alias, choose the property
defined in 2-3 for the Property Name. 
6. In the same properties pane choose one of the existing messages for the
Message Type property.
7. Change the name of the message used with the property alias.
==> I get a ClassCastException, and the Message Type property of the property
alias is no refactored to reflect the new name for the message.

Attached is a stack trace of the ClassCastException, and before/after versions
of the wsdl file.
Comment 1 jlautz 2006-09-29 20:33:20 UTC
Created attachment 34720 [details]
stack trace.
Comment 2 jlautz 2006-09-29 20:34:00 UTC
Created attachment 34721 [details]
WSDL file before steps in scenario
Comment 3 jlautz 2006-09-29 20:35:41 UTC
Created attachment 34722 [details]
WSDL file after steps in scenario + save.
Comment 4 jlautz 2006-09-29 20:52:35 UTC
Another scenario to test:

I encounter the same exception when I continue the scenario by renaming the
property defined in steps 2-3 in the scenario. The name change is not propagated
to the property alias.

I will also attach the stack trace for this additional case.
Comment 5 jlautz 2006-09-29 20:54:45 UTC
Created attachment 34723 [details]
Stack trace for changing the property name.
Comment 6 Vladimir Yaroslavskiy 2006-10-03 15:07:49 UTC
Fixed due to issue 86222 has been fixed.
Comment 7 Victoria Zhukovskaya 2006-10-05 14:18:44 UTC
there is no exception
WinXP 061004