Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 1448 invoked from network); 12 Mar 2007 10:24:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2007 10:24:30 -0000 Received: (qmail 50649 invoked by uid 500); 12 Mar 2007 10:24:39 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 50612 invoked by uid 500); 12 Mar 2007 10:24:38 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 50599 invoked by uid 99); 12 Mar 2007 10:24:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 03:24:38 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Mar 2007 03:24:29 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 8F58471406C for ; Mon, 12 Mar 2007 03:24:09 -0700 (PDT) Message-ID: <23616175.1173695049584.JavaMail.jira@brutus> Date: Mon, 12 Mar 2007 03:24:09 -0700 (PDT) From: "Alexey Petrenko (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-2116) [classlib][awt] Toolkit.getDesktopProperties () prints NullPointerException. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Petrenko closed HARMONY-2116. ------------------------------------ > [classlib][awt] Toolkit.getDesktopProperties () prints NullPointerException. > ---------------------------------------------------------------------------- > > Key: HARMONY-2116 > URL: https://issues.apache.org/jira/browse/HARMONY-2116 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Andrew Zhang > Assigned To: Alexey Petrenko > Priority: Minor > Attachments: EventDispatchThread.patch, HARMONY-2116-EventDispatchThreadRTest.patch > > > Harmony java.awt.Toolkit#getDesktopProperties() prints NullPointerException. Following code reproduces the bug: > public class ToolkitTest { > public static void main(String[] args) { > MyToolkit myToolkit = new MyToolkit(); > myToolkit.initializeDesktopProperties(); > Map props = myToolkit.getDesktopProperties(); > } > } > class MyToolkit extends Toolkit { > public Map getDesktopProperties() { > return desktopProperties; > } > public void initializeDesktopProperties() { > super.initializeDesktopProperties(); > } > public void beep() { > > } > public int checkImage(Image arg0, int arg1, int arg2, ImageObserver arg3) { > return 0; > } > protected ButtonPeer createButton(Button arg0) throws HeadlessException { > return null; > } > protected CanvasPeer createCanvas(Canvas arg0) { > return null; > } > protected CheckboxPeer createCheckbox(Checkbox arg0) throws HeadlessException { > return null; > } > protected CheckboxMenuItemPeer createCheckboxMenuItem(CheckboxMenuItem arg0) throws HeadlessException { > return null; > } > protected ChoicePeer createChoice(Choice arg0) throws HeadlessException { > return null; > } > protected DialogPeer createDialog(Dialog arg0) throws HeadlessException { > return null; > } > public DragSourceContextPeer createDragSourceContextPeer(DragGestureEvent arg0) throws InvalidDnDOperationException { > return null; > } > protected FileDialogPeer createFileDialog(FileDialog arg0) throws HeadlessException { > return null; > } > protected FramePeer createFrame(Frame arg0) throws HeadlessException { > return null; > } > public Image createImage(String arg0) { > return null; > } > public Image createImage(URL arg0) { > return null; > } > public Image createImage(ImageProducer arg0) { > return null; > } > public Image createImage(byte[] arg0, int arg1, int arg2) { > return null; > } > protected LabelPeer createLabel(Label arg0) throws HeadlessException { > return null; > } > protected ListPeer createList(List arg0) throws HeadlessException { > return null; > } > protected MenuPeer createMenu(Menu arg0) throws HeadlessException { > return null; > } > protected MenuBarPeer createMenuBar(MenuBar arg0) throws HeadlessException { > return null; > } > protected MenuItemPeer createMenuItem(MenuItem arg0) throws HeadlessException { > return null; > } > protected PanelPeer createPanel(Panel arg0) { > return null; > } > protected PopupMenuPeer createPopupMenu(PopupMenu arg0) throws HeadlessException { > return null; > } > protected ScrollPanePeer createScrollPane(ScrollPane arg0) throws HeadlessException { > return null; > } > protected ScrollbarPeer createScrollbar(Scrollbar arg0) throws HeadlessException { > return null; > } > protected TextAreaPeer createTextArea(TextArea arg0) throws HeadlessException { > return null; > } > protected TextFieldPeer createTextField(TextField arg0) throws HeadlessException { > return null; > } > protected WindowPeer createWindow(Window arg0) throws HeadlessException { > return null; > } > public ColorModel getColorModel() throws HeadlessException { > return null; > } > public String[] getFontList() { > return null; > } > public FontMetrics getFontMetrics(Font arg0) { > return null; > } > protected FontPeer getFontPeer(String arg0, int arg1) { > return null; > } > public Image getImage(String arg0) { > return null; > } > public Image getImage(URL arg0) { > return null; > } > public PrintJob getPrintJob(Frame arg0, String arg1, Properties arg2) { > return null; > } > public int getScreenResolution() throws HeadlessException { > return 0; > } > public Dimension getScreenSize() throws HeadlessException { > return null; > } > public Clipboard getSystemClipboard() throws HeadlessException { > return null; > } > protected EventQueue getSystemEventQueueImpl() { > return null; > } > public Map mapInputMethodHighlight(InputMethodHighlight arg0) throws HeadlessException { > return null; > } > public boolean prepareImage(Image arg0, int arg1, int arg2, ImageObserver arg3) { > return false; > } > public void sync() { > } > > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.