Bug 2270 - reject duplicate class names
Summary: reject duplicate class names
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P1 normal
Target Milestone: ---
Assignee: Andrew Cagney
URL:
Keywords:
Depends on:
Blocks: 1839 2235
  Show dependency treegraph
 
Reported: 2006-02-05 20:05 UTC by Andrew Cagney
Modified: 2006-03-26 05:03 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2006-02-05 20:05:43 UTC
GCJ has a nasty bug where it mis-compiles files that contain duplicate class
names vis:

foo () { class C {} }
bar () { class C {} }

generating code where foo, is in fact manipulating bar's C class.

To avoid the problem, reject .java files that contain duplicated class names.
Comment 1 Andrew Cagney 2006-02-05 20:06:18 UTC
Index: common/ChangeLog
2006-02-05  Andrew Cagney  <cagney@redhat.com>

        * Makefile.rules (.java.o): Check and reject duplicate classes --
        avoids a GCJ bug.