Menu

#880 Assertion failed in expr.cpp

patched
closed-fixed
None
5
2004-07-06
2004-03-02
Anonymous
No

I've not been able to locate the file which causes
the error, but it occurs on all our four codebases:

Assertion failed: ThisVariable() && (ThisVariable() -> ACC_STATIC() ? this_type -> static_initializer_method : (this_type -> FindMethodSymbol(control.block_init_name_symbol))), file expr.cpp, line 3910

The assertion fails with the latest CVS HEAD version.

Discussion

  • Nobody/Anonymous

    This tiny test class reproduces the error:

    public class Test
    {
    public Test() {
    }

    public static class Base {
    private Base() {
    }
    }

    public static class Sub extends Base {
    private Sub() {
    }
    }
    }

     
  • Eric Blake

    Eric Blake - 2004-03-10

    Committed a patch to CVS - it was my oversight, since synthetic placeholder types for private constructor accessors are created on the anonymous class code path.

     
  • Eric Blake

    Eric Blake - 2004-03-10
    • assigned_to: nobody --> ebblake
    • status: open --> open-fixed
     
  • Nobody/Anonymous

    Thanks!

    I can confirm that this bug is fixed, so we could close it.

    stein@xtramind.com

     
  • Elliott Hughes

    Elliott Hughes - 2004-07-06
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.