+2005-02-18 Tom Tromey <tromey@redhat.com>
+
+ PR java/20056:
+ * verify.cc (type::equals): Fixed test.
+ * testsuite/libjava.lang/PR20056.out: New file.
+ * testsuite/libjava.lang/PR20056.java: New file.
+
2005-02-18 Bryce McKinlay <mckinlay@redhat.com>
* java/util/LinkedHashMap (addEntry): Call remove() with key argument,
--- /dev/null
+public class PR20056 {
+ int x;
+ PR20056(int x) {}
+ PR20056(PR20056 f) {
+ // The verifier rejected the generated code in this case.
+ this(f.x = 0);
+ }
+
+ public static void main(String[] args)
+ {
+ System.out.println("maude");
+ }
+}
bool equals (const type &other, _Jv_BytecodeVerifier *vfy)
{
// Only works for reference types.
- if (key != reference_type
- || key != uninitialized_reference_type
- || other.key != reference_type
- || other.key != uninitialized_reference_type)
+ if ((key != reference_type
+ && key != uninitialized_reference_type)
+ || (other.key != reference_type
+ && other.key != uninitialized_reference_type))
return false;
// Only for single-valued types.
if (klass->ref_next || other.klass->ref_next)