Menu

#88 spurious typechecking errors in Generic MultiJava

Self_Reported
open
8
2006-05-26
2004-05-10
No

I tried to compile Polyglot with the current version of
mjc and got a number of spurious typechecking errors.
(Polyglot compiles fine with the 1.2 release of mjc.)

All of the typechecking errors are similar to the
following:

[javac] File "src/java_cup/assoc.java", line 8,
character 13 error: "java_cup.assoc.<clinit>( )" has
same signature with method "java.lang.Object.<clinit>(
)" but not indirectly override [Generic MultiJava]

The file assoc.java is attached. The typechecker
thinks the class's static initializer does not properly
override Object's static initializer. For some reason,
assoc.java seems to compile fine on its own, even
though it fails to compile during the Polyglot build
process. I was unfortunately unable to come up with a
small test case that exhibits the error on its own.

Discussion

  • Todd Millstein

    Todd Millstein - 2004-05-10
     
  • Curtis Clifton

    Curtis Clifton - 2004-09-13
    • assigned_to: tongjie --> leavens
     
  • Curtis Clifton

    Curtis Clifton - 2004-09-13

    Logged In: YES
    user_id=635640

    Gary, what should we do with this bug now that Tongjie is gone? Or is he
    planning on continuing work with mjc?

     
  • Gary T. Leavens

    Gary T. Leavens - 2004-09-13
    • assigned_to: leavens --> tongjie
     
  • Gary T. Leavens

    Gary T. Leavens - 2004-09-13

    Logged In: YES
    user_id=633675

    It should still be assigned to Tongjie, as he's supposed to
    finish this work for his MS thesis. I'm expecting he will and
    hoping so... Of course if someone else can fix this, they
    would be welcome to do so...

     
  • Todd Millstein

    Todd Millstein - 2004-11-30

    Logged In: YES
    user_id=637881

    Thanks Tongjie, for fixing that bug. Now compiling Polyglot
    with mjc gets a lot further than before! However, it still
    fails later on with another spurious Generic MultiJava error:
    File "src/polyglot/ext/jl/qq/QQ.java", line 132,
    character 12 error: Method "list" has duplicate signature
    after erasure [Generic MultiJava]

    The "list" method is overloaded a bunch, so possibly there's
    a problem with type erasure in the presence of static
    overloading? I've attached the file in question (I tried
    briefly to make a smaller test case but failed). Thanks again.

     
  • Todd Millstein

    Todd Millstein - 2004-11-30
     
  • Gary T. Leavens

    Gary T. Leavens - 2005-06-14
    • assigned_to: tongjie --> nobody
     
  • Gary T. Leavens

    Gary T. Leavens - 2005-06-14

    Logged In: YES
    user_id=633675

    We also need to find someone to deal with this bug, as
    Tongjie is probably not going to have time to work on it.

     
  • Gary T. Leavens

    Gary T. Leavens - 2005-12-23
    • assigned_to: nobody --> tongjie
     
  • Gary T. Leavens

    Gary T. Leavens - 2005-12-23

    Logged In: YES
    user_id=633675

    Tongjie says he'll take a look at it again.

     
  • Gary T. Leavens

    Gary T. Leavens - 2005-12-23

    Logged In: YES
    user_id=633675

    Tongjie says he'll take a look at it again.

     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23
    • priority: 7 --> 8
    • assigned_to: tongjie --> nobody
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-23

    Logged In: YES
    user_id=633675

    Well, it looks as if Tongjie is not going to get to this.
    Does anyone have time and interest?

     
  • Ovidio Mallo

    Ovidio Mallo - 2006-05-24

    Logged In: YES
    user_id=1527756

    Could you maybe provide a link to the Polyglot sources which
    trigger those errors?

     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-24

    Logged In: YES
    user_id=633675

    Unfortunately, I don't have a direct way to get you this file.
    But I think you'll find an example if you compile a
    moderately sized or larger Java program with the -G flag
    turned on. Or use the version of Polyglott from November
    2004 (see the original bug reports below).

     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-26
    • assigned_to: nobody --> wdietl
     
  • Gary T. Leavens

    Gary T. Leavens - 2006-05-26

    Logged In: YES
    user_id=633675

    Werner, I'm assigning this to you so that if Ovidio (or
    you) run across this problem in some simpler test case,
    you may be able to recognize it, and perhaps fix it. If
    you or Ovidio can't fix it, that it's okay, but I think
    there is some lurking problem that you will most likely
    run across in the work on generics. Thanks.

     

Log in to post a comment.