Bug 50860 - Unexpected NullPointerException when create simple class
Summary: Unexpected NullPointerException when create simple class
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.5.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
Depends on:
Reported: 2011-10-25 00:11 UTC by lsching17
Modified: 2016-09-30 22:52 UTC (History)
0 users

See Also:
Known to work:
Known to fail:
Last reconfirmed:

test case to reproduce the problem (1.50 KB, application/zip)
2011-10-25 00:11 UTC, lsching17
gcj -v (662 bytes, application/octet-stream)
2011-10-25 00:12 UTC, lsching17
information of command "gcj -v" (662 bytes, text/plain)
2011-10-25 00:13 UTC, lsching17
compile linux x64 executable (by gcj 4.5.2) (6.63 KB, application/octet-stream)
2011-10-25 00:16 UTC, lsching17

Note You need to log in before you can comment on or make changes to this bug.
Description lsching17 2011-10-25 00:11:32 UTC
Created attachment 25601 [details]
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.
Comment 1 lsching17 2011-10-25 00:12:29 UTC
Created attachment 25602 [details]
gcj -v
Comment 2 lsching17 2011-10-25 00:13:58 UTC
Created attachment 25603 [details]
information of command "gcj -v"
Comment 3 lsching17 2011-10-25 00:16:13 UTC
Created attachment 25604 [details]
compile linux x64 executable (by gcj 4.5.2)

--main=net_server_main -pipe -O2
Comment 4 Andrew Pinski 2016-09-30 22:52:18 UTC
Closing as won't fix as the Java front-end has been removed from the trunk.