You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexey A. Ivanov (JIRA)" <ji...@apache.org> on 2006/12/07 15:04:21 UTC
[jira] Created: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
[classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
----------------------------------------------------------
Key: HARMONY-2521
URL: http://issues.apache.org/jira/browse/HARMONY-2521
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Alexey A. Ivanov
import javax.swing.JTextPane;
public class Test {
public static void main(String[] args) {
new JTextPane().updateUI();
System.out.println("passed OK");
}
}
This simple code causes NPE on Harmony:
Exception in thread "main" java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:698)
at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
at java.awt.Component.firePropertyChange(Component.java:1680)
at java.awt.Component.setForeground(Component.java:322)
at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
at javax.swing.JComponent.setUI(JComponent.java:1273)
at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
at Test.main(Test.java:5)
The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2521?page=all ]
Sergey Krivenko updated HARMONY-2521:
-------------------------------------
Attachment: Harmony-2521-BasicTextUITest.patch
the attached file is a patch to the test
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: http://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Krivenko updated HARMONY-2521:
-------------------------------------
Attachment: Harmony-2521-BasicTextPaneUI.patch
The updated patch
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: Harmony-2521-BasicTextPaneUI.patch, Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470916 ]
Sergey Krivenko commented on HARMONY-2521:
------------------------------------------
verified
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2521-BasicTextPaneUI.patch, Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12464445 ]
Mark Hindess commented on HARMONY-2521:
---------------------------------------
After applying the fix, I get some issues. There must be a timing issues since either the test crashes with;
[junit] Running javax.swing.plaf.basic.BasicTextUITest
*** glibc detected *** double free or corruption (out): 0x08348218 ***
[junit] Test javax.swing.plaf.basic.BasicTextUITest FAILED
or the test fails with:
testCallOrder Failure
expected:<...installUI::uninstall
[Defaults::uninstallKeyboardActions::uninstallListener]
s::> but was:<...installUI::uninstall
[Listeners::uninstallDefaults::uninstallKeyboardAction]
s::>
junit.framework.ComparisonFailure: expected:
<...installUI::uninstall
[Defaults::uninstallKeyboardActions::uninstallListener]
s::> but was:<...installUI::uninstall
[Listeners::uninstallDefaults::uninstallKeyboardAction]
s::> at
javax.swing.plaf.basic.BasicTextUITest.testCallOrder
(BasicTextUITest.java:724)
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Assigned: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov reassigned HARMONY-2521:
----------------------------------------
Assignee: Alexei Zakharov
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2521-BasicTextPaneUI.patch, Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12466488 ]
Sergey Krivenko commented on HARMONY-2521:
------------------------------------------
I'll look at this.
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Sergey Krivenko (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2521?page=all ]
Sergey Krivenko updated HARMONY-2521:
-------------------------------------
Attachment: Harmony-2521-BasicTextUI.patch
the attached file is a patch that fixes the bug
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: http://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov closed HARMONY-2521.
------------------------------------
closed
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2521-BasicTextPaneUI.patch, Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Alexey A. Ivanov (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-2521?page=all ]
Alexey A. Ivanov updated HARMONY-2521:
--------------------------------------
Patch Info: [Patch Available]
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: http://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Attachments: Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Resolved: (HARMONY-2521) [classlib][swing]
j.s.text.JTextPane.updateUI() throws NPE
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-2521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov resolved HARMONY-2521.
--------------------------------------
Resolution: Fixed
Thanks Sergey, changes were committed at the revision 501436. Please verify. I've also removed BasicTextUITest from the exclude list.
> [classlib][swing] j.s.text.JTextPane.updateUI() throws NPE
> ----------------------------------------------------------
>
> Key: HARMONY-2521
> URL: https://issues.apache.org/jira/browse/HARMONY-2521
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Alexey A. Ivanov
> Assigned To: Alexei Zakharov
> Attachments: Harmony-2521-BasicTextPaneUI.patch, Harmony-2521-BasicTextUI.patch, Harmony-2521-BasicTextUITest.patch
>
>
> import javax.swing.JTextPane;
> public class Test {
> public static void main(String[] args) {
> new JTextPane().updateUI();
> System.out.println("passed OK");
> }
> }
> This simple code causes NPE on Harmony:
> Exception in thread "main" java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:698)
> at javax.swing.text.SimpleAttributeSet.addAttribute(SimpleAttributeSet.java:50)
> at javax.swing.text.StyleContext.addAttribute(StyleContext.java:477)
> at javax.swing.text.StyleContext$NamedStyle.addAttribute(StyleContext.java:77)
> at javax.swing.plaf.basic.BasicTextPaneUI.propertyChange(BasicTextPaneUI.java:52)
> at javax.swing.plaf.basic.BasicTextUI$Listener.propertyChange(BasicTextUI.java:32)
> at java.beans.PropertyChangeSupport.doFirePropertyChange(PropertyChangeSupport.java:334)
> at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:59)
> at java.awt.Component.firePropertyChangeImpl(Component.java:1666)
> at java.awt.Component.firePropertyChange(Component.java:1680)
> at java.awt.Component.setForeground(Component.java:322)
> at javax.swing.plaf.basic.BasicTextUI.uninstallDefaults(BasicTextUI.java:866)
> at javax.swing.plaf.basic.BasicTextUI.uninstallUI(BasicTextUI.java:929)
> at javax.swing.JComponent.setUI(JComponent.java:1273)
> at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:1587)
> at Test.main(Test.java:5)
> The code runs without any errors on RI.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.