[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-3340) java.lang.StackOverflowError when delete value in CSS Class Dialog in width field under Linux and OS X
Igor Zhukov (JIRA)
jira-events at lists.jboss.org
Wed Dec 3 12:38:44 EST 2008
[ https://jira.jboss.org/jira/browse/JBIDE-3340?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Zhukov resolved JBIDE-3340.
--------------------------------
Resolution: Done
Assignee: Yura Zhishko (was: Igor Zhukov)
fixed in revision 12253
> java.lang.StackOverflowError when delete value in CSS Class Dialog in width field under Linux and OS X
> ------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-3340
> URL: https://jira.jboss.org/jira/browse/JBIDE-3340
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Affects Versions: 3.0.0.cr1
> Environment: OS Linux, OS X
> Reporter: Maxim Areshkau
> Assignee: Yura Zhishko
> Priority: Critical
> Fix For: 3.0.0.cr1
>
>
> extWidthCombo.addModifyListener(new ModifyListener() {
> public void modifyText(ModifyEvent event) {
> String width = widthText.getText();
> if (width != null && !width.trim().equals(Constants.EMPTY)) {
> String tmp = extWidthCombo.getText();
> if (tmp != null) {
> styleAttributes.addAttribute(CSSConstants.WIDTH, width + tmp);
> }
> } else {
> extWidthCombo.select(0);
> return;
> }
> if (!updateDataFromStyleAttributes) {
> notifyListeners();
> }
> }
> });
> Error in else block, we in modify listener modify value so it's caused stack overflow.
> Also we should remove copy/past code. Code in ModifyListener always equals or almost equals to other modify listeners for combo attributes.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list