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 47908 - Test fails if Informational dialog rises (type invalid value in URL property)
Summary: Test fails if Informational dialog rises (type invalid value in URL property)
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 13:09 UTC by Marian Mirilovic
Modified: 2008-12-23 00:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
URLEditor patch (1.12 KB, patch)
2004-08-26 10:15 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 13:09:19 UTC
see issue 46584

[nb_dev](200408241800)

now it works fine , BUT it doesn't work for :
- test to set invalid value by inplace URL editor .


Tests fail with :
---------------------
java.lang.IllegalArgumentException: no protocol: xxx
	at
org.netbeans.beaninfo.editors.URLEditor.setAsText(URLEditor.java:40)
	at
org.openide.explorer.propertysheet.PropUtils.updatePropertyEditor(PropUtils.java:457)
	at
org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:477)
	at
org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing(SheetCellEditor.java:288)
	at
org.openide.explorer.propertysheet.SheetCellEditor.actionPerformed(SheetCellEditor.java:175)
	at
javax.swing.JTextField.fireActionPerformed(JTextField.java:487)
	at
javax.swing.JTextField.postActionEvent(JTextField.java:668)
	at
javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:783)
	at
javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1571)
	at
javax.swing.JComponent.processKeyBinding(JComponent.java:2730)
	at
javax.swing.JComponent.processKeyBindings(JComponent.java:2765)
	at
javax.swing.JComponent.processKeyEvent(JComponent.java:2693)
	at
java.awt.Component.processEvent(Component.java:5265)
	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.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1810)
	at
java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:668)
	at
java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:916)
	at
java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:794)
	at
java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:632)
	at
java.awt.Component.dispatchEventImpl(Component.java:3841)
	at
java.awt.Container.dispatchEventImpl(Container.java:2024)
	at
java.awt.Window.dispatchEventImpl(Window.java:1766)
	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.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:15:14 UTC
It is rather problem in URLEditor. There is wrong annotation of thrown
exception (look at the patch).
Comment 2 Jiri Skrivanek 2004-08-26 10:15:54 UTC
Created attachment 17159 [details]
URLEditor patch
Comment 3 Jiri Rechtacek 2004-08-26 14:24:06 UTC
The patch was applied in src/org/netbeans/beaninfo/editors/URLEditor.java;
/cvs/core/src/org/netbeans/beaninfo/editors/URLEditor.java,v  <-- 
URLEditor.java
new revision: 1.13; previous revision: 1.12
done
Comment 4 Marian Mirilovic 2004-08-27 13:58:25 UTC
verified in [nb_dev](200408262030)