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 257765 - Fragile test HTMLTemplateTest
Summary: Fragile test HTMLTemplateTest
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Templates (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Martin Entlicher
URL: http://deadlock.netbeans.org/job/NB-C...
Keywords: TEST
Depends on:
Blocks:
 
Reported: 2016-01-29 17:27 UTC by Martin Entlicher
Modified: 2016-01-31 02:39 UTC (History)
0 users

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 Martin Entlicher 2016-01-29 17:27:37 UTC
java.lang.IndexOutOfBoundsException: Index: 1, Size: 3
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at java.util.Collections$UnmodifiableList.get(Collections.java:1309)
	at org.netbeans.modules.templatesui.AbstractWizard.current(AbstractWizard.java:182)
	at org.netbeans.modules.templatesui.HTMLWizard.current(HTMLWizard.java:56)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.current(TemplateWizard.java:1015)
	at org.openide.loaders.TemplateWizardIterImpl.current(TemplateWizardIterImpl.java:144)
	at org.openide.loaders.TemplateWizardIteratorWrapper.current(TemplateWizardIteratorWrapper.java:92)
	at org.openide.loaders.TemplateWizard.getContentSelectedIndex(TemplateWizard.java:814)
	at org.openide.loaders.TemplateWizard.access$200(TemplateWizard.java:74)
	at org.openide.loaders.TemplateWizard$5.propertyChange(TemplateWizard.java:837)
	at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:327)
	at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
	at java.awt.Component.firePropertyChange(Component.java:8430)
	at javax.swing.JComponent.putClientProperty(JComponent.java:4087)
	at org.netbeans.modules.templatesui.AbstractWizard.onStepsChange(AbstractWizard.java:423)
	at org.netbeans.modules.templatesui.AbstractWizard.nextPanel(AbstractWizard.java:211)
	at org.netbeans.modules.templatesui.HTMLWizard.nextPanel(HTMLWizard.java:56)
	at org.netbeans.modules.templatesui.HTMLTemplateTest.checkTheIterator(HTMLTemplateTest.java:132)
Comment 1 Martin Entlicher 2016-01-29 17:28:44 UTC
There seem to be two issues:
1) HTMLTemplateTest does not run the code in AWT thread
2) AbstractWizard.panels field has no sense and should be deleted.
Comment 2 Martin Entlicher 2016-01-29 17:46:09 UTC
Fixed by changeset:   295113:043dbb4c8992
http://hg.netbeans.org/core-main/rev/043dbb4c8992
Comment 3 Quality Engineering 2016-01-31 02:39:52 UTC
Integrated into 'main-silver', will be available in build *201601310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/043dbb4c8992
User: mentlicher@netbeans.org
Log: #257765: Test fixed and a useless field removed.