Skip to content

Infinite loop in XsdBasedSoap11Wsdl4jDefinitionBuilder#buildMessages method [SWS-257] #414

Closed
@gregturn

Description

@gregturn

Davide Romanini opened SWS-257 and commented

When creating a WSDL based on XSD, the method XsdBasedSoap11Wsdl4jDefinitionBuilder#buildMessages goes in infinite loop trying to generate a new prefix for each namespace found in the XSD. It uses a very ugly while(true)/break implementation, forgetting to increment the counter i, so if you have more than one namespace it never reaches the break statement and loop indefinitely.

Very nasty bug with obvious fix.


Affects: 1.0.2

Referenced from: commits d7865e0, 586ac47

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions