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 201363 - AE: .../name.wsmode from BasicWizardIterator.getCreatedFiles
Summary: AE: .../name.wsmode from BasicWizardIterator.getCreatedFiles
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 198318
  Show dependency tree
 
Reported: 2011-08-26 13:39 UTC by Jesse Glick
Modified: 2011-08-27 14:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2011-08-26 13:39:42 UTC
E.g. when add a new window to a Maven NBM project and asking to customize layout first, get:

java.lang.AssertionError: src/main/resources/test/test200748/left.wsmode
	at org.netbeans.modules.apisupport.project.ui.wizard.common.BasicWizardIterator.getCreatedFiles(BasicWizardIterator.java:358)
	at org.netbeans.modules.apisupport.project.ui.wizard.winsys.NewTCIterator.instantiate(NewTCIterator.java:95)

This is because the resource name on disk has been sanitized to leftWsmode.xml. LayoutIterator and NewTCIterator are both passing incorrect data to layerModifications. Not sure how this could ever have worked.
Comment 1 Jesse Glick 2011-08-26 13:59:59 UTC
core-main #70f175cca0bd
Comment 2 Jaroslav Tulach 2011-08-27 07:10:06 UTC
It seemed to create the right files, but yes, I think it complained. I had no idea what was wrong.
Comment 3 Quality Engineering 2011-08-27 14:12:53 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/70f175cca0bd
User: Jesse Glick <jglick@netbeans.org>
Log: #201363: AE: .../name.wsmode from BasicWizardIterator.getCreatedFiles