[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/23736] New: NullPointerException in java.awt.image.ComponentCol
From: |
tromey at gcc dot gnu dot org |
Subject: |
[Bug awt/23736] New: NullPointerException in java.awt.image.ComponentColorModel constructor |
Date: |
5 Sep 2005 16:41:15 -0000 |
This comes from Red Hat bugzilla:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=167513
I tried it with gcc cvs trunk and also a recent-ish classpath cvs
and saw the same failure.
Here's the test case:
import java.awt.color.ColorSpace;
import java.awt.image.ComponentColorModel;
import java.awt.image.DataBuffer;
import java.awt.Transparency;
public class test {
public static void main(String[] args) {
new ComponentColorModel(
ColorSpace.getInstance(ColorSpace.CS_sRGB),
false,
true,
Transparency.OPAQUE,
DataBuffer.TYPE_FLOAT);
}
}
This fails like so:
opsy. gij test
Exception in thread "main" java.lang.NullPointerException
at java.awt.image.ComponentColorModel.sum (ComponentColorModel.java:51)
at java.awt.image.ComponentColorModel.<init> (ComponentColorModel.java:60)
at java.awt.image.ComponentColorModel.<init> (ComponentColorModel.java:86)
at test.main (test.java:14)
It runs without exception with the JDK.
--
Summary: NullPointerException in
java.awt.image.ComponentColorModel constructor
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
CC: bug-classpath at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23736
- [Bug awt/23736] New: NullPointerException in java.awt.image.ComponentColorModel constructor,
tromey at gcc dot gnu dot org <=