Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exec-model doesn't report a build error when non-defined annotation is used with DRL6_STRICT #6039

Open
tkobayas opened this issue Aug 1, 2024 · 3 comments
Assignees

Comments

@tkobayas
Copy link
Contributor

tkobayas commented Aug 1, 2024

With

System.setProperty("drools.lang.level", "DRL6_STRICT");
declare Person
    @author( Bob )
    @dateOfCreation( 01-Feb-2009 )

    name : String @key @maxLength( 30 )
    dateOfBirth : Date
    address : Address
end

non-exec-model reports build errors.

Unknown annotation: author
Unknown annotation: dateOfCreation
Unknown annotation: MaxLength
Unknown annotation: key

But exec-model silently ignores the problem.

@tkobayas
Copy link
Contributor Author

tkobayas commented Aug 5, 2024

lower priority

@JaredDavis22
Copy link
Contributor

Sorry to keep going on this.

Should key be in the list of unknown annotations? I would expect key, position and the other internally implemented annotations would be handled without error regardless of drools.lang.level setting.

@tkobayas
Copy link
Contributor Author

@JaredDavis22 "DRL6_STRICT" is very strict that it doesn't accept the lower case @key. If you change it to @Key, it is handled :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants