Skip to content

Inner static block is causing compilation error #718

@AntonPanikov

Description

@AntonPanikov

Inner static init block is causing compilation error:

package test

class Test {
    class TestInner {
        static {
        }
    }
}

Compile error:

The method <clinit> cannot be declared static; static methods can only be declared in a static or top level type

I am on 3.1.0.xx-201809160115-e47

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions