On Wed, Sep 22, 2004 at 12:49:36PM -0400, Prof. Laurie HENDREN wrote:
> I saw a recent "fix" checked in wrt to something like this.
>
> Can you get the error using jlc of the most recent polyglot?
No, it doesn't happen with jlc, only with Soot. I suspect it may have
something to do with the fact that in Soot, A is not an application
class and doesn't get resolved all the way through (it's not written
out). Both Polyglot on its own and Abc force A to be an "application
class": Abc gives an error if you don't explicitly specify it, while
Polyglot silently adds it for you to the list of classes to be compiled.
Ondrej
>
> Cheers, Laurie
>
>
>
> +-------------------------------------------------------------+
> | Laurie Hendren, Professor, School of Computer Science |
> | McGill University |
> | 318 McConnell Engineering Building tel: (514) 398-7391 |
> | 3480 University Street fax: (514) 398-3883 |
> | Montreal, Quebec H3A 2A7 hendren@cs.mcgill.ca |
> | CANADA http://www.sable.mcgill.ca/~hendren |
> +-------------------------------------------------------------+
>
> On Wed, 22 Sep 2004, Ondrej Lhotak wrote:
>
> > I get it with a Polyglot downloaded from
> > musketeer:/usr/local/src/polyglot-dev/lib/polyglot.jar
> > this morning. Was this a recent Polyglot bug?
> >
> > Ondrej
> >
> > On Wed, Sep 22, 2004 at 03:54:42PM +0100, Oege de Moor wrote:
> > >
> > > I thought that was fixed. Are you building Soot with the latest polyglot?
> > >
> > > On Wed, 22 Sep 2004, Ondrej Lhotak wrote:
> > >
> > > > This is not a bug that I can get in abc, but only in plain Soot.
> > > > However, it seems like it could be caused by some of the abc-related
> > > > changes that have been made to Soot, so I'm sending it here.
> > > >
> > > > If you create two files, A.java and B.java, containing:
> > > >
> > > > class A {
> > > > }
> > > >
> > > > class B extends A {
> > > > }
> > > >
> > > > then run "soot B", you get the Polyglot error:
> > > > /home/research/ccl/olhota/foo/A.java:1-2: Duplicate class "A".
> > > > class A {
> > > > ^--------
> > > > }
> > > > ^
> > > >
> > > > compilation failed: Could not compile
> > > >
> > > > Anybody have any ideas on what changes could be causing this?
> > > >
> > > > Ondrej
> > > >
> > > >
> > >
> >
>
>
Received on Wed Sep 22 17:56:48 2004
This archive was generated by hypermail 2.1.8 : Wed Sep 22 2004 - 18:10:02 BST