This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/25265] New: linking BC-compiled classes with incompatible changes
- From: "thebohemian at gmx dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 5 Dec 2005 14:00:19 -0000
- Subject: [Bug libgcj/25265] New: linking BC-compiled classes with incompatible changes
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Imagine the following situation:
class T {
void test(){
M.staticMethod(); // a
new M().method(); // b
M.staticField = "FOO"; // c
new M().field = "FOO"; // d
}
}
class M{
static void staticMethod(){}
void method(){}
static String staticField;
String field;
}
Compile this and then replace the class file of M with the compiled code of
this class: class M{}
The JDK has no problems loading the T class and when running each the statement
*on its own* it would throw a NoSuchMethodError (case a & b) or a
NoSuchFieldError (case c & d).
GIJ should do the same.
--
Summary: linking BC-compiled classes with incompatible changes
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: thebohemian at gmx dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25265