This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
two patches for better jc1 error handling
- From: Per Bothner <per at bothner dot com>
- To: gcc-patches at gc dot gnu dot org dot bothner dot com, java at gcc dot gnu dot org
- Date: Fri, 08 Mar 2002 22:15:50 -0800
- Subject: two patches for better jc1 error handling
The first patch is needed to recover from bad assignments
like:
String x = 30;
The second patch is needed to catch errors like:
String x = 0;
There are other ways to solve the problem, but I don't see
any reason for a special case for 0 so I removed it.
Fixing this triggers a few problems in libjava where
0 is assigned to RawData fields. The ones I've come
across so far are in gnu.gcj.xlib. Before I check this
patch in, I'll fix those (and run the testsuite).
--
--Per Bothner
per@bothner.com http://www.bothner.com/per/