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 47903 - Test fails if Informational dialog rises (type invalid value in Dimension Insets Point Rectangle properties)
Summary: Test fails if Informational dialog rises (type invalid value in Dimension Ins...
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Property Editors (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: T9Y, TEST
Depends on:
Blocks:
 
Reported: 2004-08-25 12:42 UTC by Marian Mirilovic
Modified: 2008-12-22 23:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
PointCustomEditor patch (1.45 KB, patch)
2004-08-26 10:12 UTC, Jiri Skrivanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2004-08-25 12:42:55 UTC
see issue 46584

[nb_dev](200408241800)

now it works fine , BUT it doesn't work for :
- test to set invalid value by customizer for
properties type :
Dimension Insets Point Rectangle


Tests fail with :
---------------------
java.lang.IllegalStateException
	at
org.netbeans.beaninfo.editors.PointCustomEditor.getPropertyValue(PointCustomEditor.java:112)
	at
org.openide.explorer.propertysheet.PropertyDialogManager.doButtonPressed(PropertyDialogManager.java:474)
	at
org.openide.explorer.propertysheet.PropertyDialogManager.access$000(PropertyDialogManager.java:38)
	at
org.openide.explorer.propertysheet.PropertyDialogManager$1.actionPerformed(PropertyDialogManager.java:122)
	at
org.netbeans.core.windows.services.NbPresenter$ButtonListener.actionPerformed(NbPresenter.java:1041)
	at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
	at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
	at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
	at
java.awt.Component.processMouseEvent(Component.java:5488)
	at
javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
	at
java.awt.Component.processEvent(Component.java:5253)
	at
java.awt.Container.processEvent(Container.java:1966)
	at
java.awt.Component.dispatchEventImpl(Component.java:3955)
	at
java.awt.Container.dispatchEventImpl(Container.java:2024)
	at
java.awt.Component.dispatchEvent(Component.java:3803)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
org.netbeans.jemmy.QueueTool$JemmyQueue.dispatchEvent(QueueTool.java:581)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
	at java.awt.Dialog$1.run(Dialog.java:515)
	at java.awt.Dialog.show(Dialog.java:536)
	at
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:779)
	at
org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:822)
	at
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:810)
	at org.openide.util.Mutex$1.run(Mutex.java:937)
	at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
	at
java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
org.netbeans.jemmy.QueueTool$JemmyQueue.dispatchEvent(QueueTool.java:581)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at
java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Jiri Skrivanek 2004-08-26 10:11:32 UTC
It is rather problem in PointCustomEditor. There should be USER
severity instead of ERROR (look at the patch).
Comment 2 Jiri Skrivanek 2004-08-26 10:12:08 UTC
Created attachment 17158 [details]
PointCustomEditor patch
Comment 3 Jiri Rechtacek 2004-08-26 14:23:46 UTC
The patch was applied in
src/org/netbeans/beaninfo/editors/PointCustomEditor.java;
/cvs/core/src/org/netbeans/beaninfo/editors/PointCustomEditor.java,v 
<--  PointCustomEditor.java
new revision: 1.24; previous revision: 1.23
done
Comment 4 Marian Mirilovic 2004-08-27 14:39:50 UTC
verified in [nb_dev](200408262030)