This is the mail archive of the java-prs@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj/271: .java files are not compiled on demand (alt. unclear error)


The following reply was made to PR gcj/271; it has been noted by GNATS.

From: Alexandre Petit-Bianco <apbianco@cygnus.com>
To: osk@hem.passagen.se
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/271: .java files are not compiled on demand (alt. unclear error)
Date: Sat, 1 Jul 2000 21:13:04 -0700 (PDT)

 osk@hem.passagen.se writes:
 
 > This is caused by the fact that no UncompiledSub.class/.o
 > is available. I think that the error message printed should
 > indicate that the "unexpected type" is actually
 > UncompiledSub.
 
 A bug in the handling of the `instanceof' bytecode. Here's a patch.
 
 ./A
 
 2000-07-01  Alexandre Petit-Bianco  <apbianco@cygnus.com>
 
 	* expr.c (build_instanceof): Layout type after it's loaded.
 
 Index: expr.c
 ===================================================================
 RCS file: /cvs/gcc/egcs/gcc/java/expr.c,v
 retrieving revision 1.79
 diff -u -p -r1.79 expr.c
 --- expr.c      2000/06/29 21:11:13     1.79
 +++ expr.c      2000/07/02 04:06:33
 @@ -1073,6 +1073,7 @@ build_instanceof (value, type)
    if (CLASS_P (type) && ! CLASS_LOADED_P (type))
      {
        load_class (type, 1);
 +      safe_layout_class (type);
        if (! TYPE_SIZE (type) || TREE_CODE (TYPE_SIZE (type)) == ERROR_MARK)
         return error_mark_node;
      }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]