Skip to content

expected exception when creating an edge with a vertex type  #577

Closed

Description

@erickj

ArcadeDB Version: 22.9.1

JDK Version: jdk 11

OS: linux

Expected behavior

Expected an IllegalArgumentException when creating an edge using a vertex document type. See gist. (creating a vertex with an edge type exhibits the expected behavior)

Actual behavior

Able to create an edge, with a type that is a vertex type.

Steps to reproduce

see this gist, particularly line 31: https://gist.github.com/erickj/d60814b76ae527e72ecb7d71602731b1#file-arcadedbedgewithvertexlabel-java-L31

Activity

  1. self-assigned this
    on Oct 21, 2022
  2. added this to the 22.10.1 milestone on Oct 21, 2022
  3. lvca commented on Oct 21, 2022

    @lvca
    Member

    Reproduced. The same check is missing on vertex creation. Working on enforcing the types for both cases...

  4. lvca commented on Oct 21, 2022

    @lvca
    Member

    Thanks for the test case. Fixed.

  5. added a commit that references this issue on Jul 10, 2026
  6. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions