[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trying to build latest Icedtea / Java 6 [security update]
From: |
Danny Milosavljevic |
Subject: |
Re: Trying to build latest Icedtea / Java 6 [security update] |
Date: |
Thu, 16 Jun 2016 04:02:12 +0200 |
On Wed, 1 Jun 2016 02:29:54 -0400
Leo Famulari <address@hidden> wrote:
> On Wed, Jun 01, 2016 at 08:07:53AM +0200, Ricardo Wurmus wrote:
> > http://icedtea.classpath.org/hg/icedtea6/rev/60be25a84f2d
> >
> > we should apply this change to the 1.13.11 sources.
>
> Tested successfully, and applied as 1c6303fae.
Not sure when exactly Java broke (I'm not using it much) but it worked before
and now I get (when using a GUI program):
Exception in thread "main" java.lang.NullPointerException
at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
at
sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)
at sun.awt.FontConfiguration.init(FontConfiguration.java:107)
at
sun.awt.X11FontManager.createFontConfiguration(X11FontManager.java:774)
at sun.font.SunFontManager$2.run(SunFontManager.java:431)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.SunFontManager.<init>(SunFontManager.java:376)
at sun.awt.FcFontManager.<init>(FcFontManager.java:35)
at sun.awt.X11FontManager.<init>(X11FontManager.java:57)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:83)
at java.security.AccessController.doPrivileged(Native Method)
at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
at sun.font.SunFontManager.getInstance(SunFontManager.java:250)
at sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:264)
at sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1107)
at javax.swing.JComponent.getFontMetrics(JComponent.java:1617)
at
javax.swing.plaf.basic.BasicGraphicsUtils.getPreferredButtonSize(BasicGraphicsUtils.java:276)
at
javax.swing.plaf.basic.BasicButtonUI.getPreferredSize(BasicButtonUI.java:376)
at
javax.swing.plaf.basic.BasicButtonUI.getMinimumSize(BasicButtonUI.java:366)
at javax.swing.JComponent.getMinimumSize(JComponent.java:1735)
at javax.swing.BoxLayout.checkRequests(BoxLayout.java:483)
at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:301)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1655)
at java.awt.BorderLayout.preferredLayoutSize(BorderLayout.java:729)
at java.awt.Container.preferredSize(Container.java:1796)
at java.awt.Container.getPreferredSize(Container.java:1780)
at javax.swing.JComponent.getPreferredSize(JComponent.java:1655)
...
Does using a Java GUI "fat client" application work for you?
$ java -version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (IcedTea 3.0.1) (linux-gnu build 1.8.0_91-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)
Note that I didn't install icedtea:jdk . I've since installed it into my user
profile - no change.
Minimal example to reproduce:
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.WindowConstants;
public class A {
public static void main(String[] args) {
JFrame f = new JFrame();
JLabel l = new JLabel("Hello");
f.add(l); // comment me
f.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
//f.pack();
f.setVisible(true);
}
}
(breaks as soon as the label is in the frame)