Skip to content

Constructor in Records with varargs not found #2640

Closed

Description

@brunoborges
Environment
  • JDK version: 17
Steps To Reproduce
  1. Create a Record with last argument being varargs
  2. Attempt to instantiate the record using varargs, from another class.
Current Result

image

Expected Result

Constructor should be found.

Additional Informations

If the record is declared within the same class instantiating it, the extension works fine.

Activity

  1. snjeza commented on Aug 22, 2022

    @snjeza
    Collaborator

    This is an upstream issue. It can be reproduced in Eclipse.

  2. rgrunber commented on Aug 23, 2022

    @rgrunber
    Member

    Reproduced upstream with Eclipse :
    Version: 2022-09 (4.25)
    Build id: I20220823-0600

    Even stranger is I don't see the error reported in the problems view though it is clearly shown in the editor 😐

    @snjeza , is there a known bug for this we can reference (even old one in bugs.eclipse.org) ? If none, we should probably file a new one.

  3. changed the title [-][Bug] Constructor in Records with varargs not found[/-] [+]Constructor in Records with varargs not found[/+] on Aug 23, 2022
  4. snjeza commented on Aug 23, 2022

    @snjeza
    Collaborator

    , is there a known bug for this we can reference (even old one in bugs.eclipse.org) ? If none, we should probably file a new one.

    @rgrunber I can't find it.

  5. rgrunber commented on Aug 25, 2022

    @rgrunber
    Member

    Just noticed that the code runs just fine for me, if the above is the only error 😐 . @brunoborges , can you confirm that ? I've included it in the report upstream.

  6. brunoborges commented on Aug 25, 2022

    @brunoborges
    Author

    Yeah, code works.

  7. self-assigned this
    on Dec 25, 2022
  8. snjeza commented on Dec 26, 2022

    @snjeza
    Collaborator
  9. snjeza commented on Mar 15, 2023

    @snjeza
    Collaborator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions