Skip to content

Why CtFieldReference#IS_FINAL #IS_STATIC, CtExecutableReference#IS_STATIC ?  #2504

Open
@pvojtechovsky

Description

@pvojtechovsky

@monperrus
Do you know why CtFieldReference has non derived roles:

  • IS_FINAL
  • IS_STATIC

Do you know why CtExecutableReference has non derived role:

  • IS_STATIC

I can see reason for static on CtExecutableReference and CtFieldReference. E.g. here:

class A {
   static void method() {}
}
... some code...
//non static call of static method
this.method();
//static call of static method
A.method();

but why final? I guess that CtFieldReference#isFinal() might be derived.

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions