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 8413 - Wrong message showed after typing incorrect property value
Summary: Wrong message showed after typing incorrect property value
Status: CLOSED DUPLICATE of bug 9631
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P4 normal (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-11-14 14:58 UTC by pzajac
Modified: 2008-12-22 15:52 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 pzajac 2000-11-14 14:58:13 UTC
[maintrunk-69][boston-1152]
You have opened some property sheet window. Exception is raised sometime on
typing incorrect value to property sheet.

Example:
In Node ProjectSettings->Search Types->Date
is property "Modyfied after". If you type bad value to property ( for example
"hovadina") dialog will showed : "Exception in setter method of property:
Modified after".
This dialog doesn't contain any useful data.

Problem can be resolved by rewriting method:
void notifyExceptionInSetter (Exception e,String probertyName)
from  org.openide.explorer.propertysheet.PropertyDetails

Exception Stack trace:
Tue Nov 14 15:05:18 GMT+01:00
2000org.openide.explorer.propertysheet.PropertyDetails$ExceptionHack:
java.lang.reflect.InvocationTargetException: java.lang.IllegalArgumentException
        at
org.netbeans.modules.search.types.ModificationDateType.setMatchAfterImpl(ModificationDateType.java:240)
        at
org.netbeans.modules.search.types.ModificationDateType.setMatchAfter(ModificationDateType.java:218)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.openide.nodes.PropertySupport$Reflection.setValue(PropertySupport.java:205)
        at
org.openide.explorer.propertysheet.PropertyDetails.setPropertyValue(PropertyDetails.java:185)
        at
org.openide.explorer.propertysheet.PropertyDisplayer.setPropertyValue(PropertyDisplayer.java:762)
        at
org.openide.explorer.propertysheet.PropertyDisplayer.setAsText(PropertyDisplayer.java:732)
        at
org.openide.explorer.propertysheet.PropertyDisplayer$7.actionPerformed(PropertyDisplayer.java:602)
        at javax.swing.JTextField.fireActionPerformed(JTextField.java:421)
        at javax.swing.JTextField.postActionEvent(JTextField.java:586)
        at
javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:696)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1702)
        at javax.swing.JComponent.processKeyBinding(JComponent.java:2156)
        at javax.swing.JComponent.processKeyBindings(JComponent.java:2182)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2119)
        at java.awt.Component.processEvent(Component.java:3555)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:912)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:333)
        at
java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
Comment 1 David Strupl 2001-02-21 14:04:20 UTC
It is the same problem.

*** This issue has been marked as a duplicate of 9631 ***
Comment 2 pzajac 2002-08-06 14:25:19 UTC
verified duplicate
Comment 3 Quality Engineering 2003-07-01 16:12:23 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.