Skip to content
This repository was archived by the owner on May 3, 2022. It is now read-only.

CreateSizes-methods are indistinguishable #25

Description

@LarsMeh

In Class Create and CreateLocal are the following methods:
`
public int createSizes(final long[] p_cids, final int p_offset, int... p_sizes){...}

public int createSizes(final long[] p_cids, int... p_sizes){...}
`

It compiles but when you try to you it java cannot reference a method because both will fit.

Example:

...createSizes( ..., (int) 3, (int) 4)

In this case java dont know which method i want to use because two Integer could be interpreted as int and an array with one entry or as an array with two entries.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions