Skip to content

[Bug]: getType of JArrayRef is not element's type #1076

@Liyw979

Description

@Liyw979

What happened?

test code

class Foo {
    public static void main(String[] args) {
        System.out.println("1" + args[0]);
    }
}

debugger view:
image
image

relevant code:

@Override
@Nonnull
public Type getType() {
return base.getType();
}

I am expecting the return type of arrayref to be String instead of String[], am i right?

Version

Latest develop branch

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions