From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17911 invoked by alias); 25 Oct 2011 00:12:03 -0000 Received: (qmail 17883 invoked by uid 22791); 25 Oct 2011 00:12:02 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_GC X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 25 Oct 2011 00:11:40 +0000 From: "lsching17 at gmail dot com" To: java-prs@gcc.gnu.org Subject: [Bug java/50860] New: Unexpected NullPointerException when create simple class Date: Tue, 25 Oct 2011 00:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: java X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: lsching17 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact java-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-prs-owner@gcc.gnu.org X-SW-Source: 2011-q4/txt/msg00014.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50860 Bug #: 50860 Summary: Unexpected NullPointerException when create simple class Classification: Unclassified Product: gcc Version: 4.5.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassigned@gcc.gnu.org ReportedBy: lsching17@gmail.com Created attachment 25601 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25601 test case to reproduce the problem I am currently porting a simple network server from sun jre 6 to gcj The server do the following: a. listen to socket 20000 (net_server_main.java) b. submit a task to threadpool to handle connection (net_server_connection_class.java) However, when i try to resolve the string of current date, null pointer exception is raised (net_server_connection_class.java, line 23) The related line is simple and i suspect that it is related to gcj bug Step to reproduce: 1. run script "compile_and_run.sh" 2. use a web browser to browse "http://localhost:20000" (in my PC, firefox 7.0) help message will be display at stdout/stderr of step 1.