-
Bug
-
Resolution: Fixed
-
P2
-
6, 7, 8, 8u25, 8u40, 9
-
b33
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084377 | emb-9 | Alexander Zvegintsev | P2 | Resolved | Fixed | team |
JDK-8063828 | 8u45 | Alexander Zvegintsev | P2 | Resolved | Fixed | b01 |
JDK-8057956 | 8u40 | Alexander Zvegintsev | P2 | Resolved | Fixed | b06 |
JDK-8058254 | 8u31 | Alexander Zvegintsev | P2 | Resolved | Fixed | b01 |
JDK-8057960 | 8u25 | Alexander Zvegintsev | P2 | Closed | Fixed | b16 |
JDK-8070098 | emb-8u47 | Alexander Zvegintsev | P2 | Resolved | Fixed | team |
JDK-8058088 | emb-8u26 | Alexander Zvegintsev | P2 | Resolved | Fixed | b23 |
-----------------------------------------------------------------------------------------
import javax.swing.*;
import static java.lang.System.err;
public class UpUI {
public static void main(String[] args) {
JScrollPane scrollPane = new JScrollPane();
err.println(scrollPane.getPropertyChangeListeners().length);
scrollPane.updateUI();
err.println(scrollPane.getPropertyChangeListeners().length);
scrollPane.updateUI();
err.println(scrollPane.getPropertyChangeListeners().length);
}
}
-----------------------------------------------------------------------------------------
With MotifLookAndFeel the number of listeners will be growing - verified on JDK6, JDK7, JDK8, JDK8u26 (on Win/Solaris) - the output will be
2
3
4
While with default LaFs (on Win/Solaris) the output will be
2
2
2
The following test which is new to JCK8 (not present in JCK7) fails due to this
api/javax_swing/JScrollPane/indexTGF.html\#UpdateUI[updateUI_PropertyChangeListener_list_notGrows]
--- original report from JCK QA ---
JDK 8 b129
JCK 8a QAC b12
Other Options
-Dswing.defaultlaf=com.sun.java.swing.plaf.motif.MotifLookAndFeel
------------------------------------------------------------------------------------------
- backported by
-
JDK-8057956 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Resolved
-
JDK-8058088 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Resolved
-
JDK-8058254 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Resolved
-
JDK-8063828 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Resolved
-
JDK-8070098 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Resolved
-
JDK-8084377 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Resolved
-
JDK-8057960 api/javax_swing/JScrollPane/indexTGF.html#UpdateUI failed with MotifLookAndFeel on all platform
- Closed