yurloc opened a new issue, #5818:
URL: https://github.com/apache/incubator-kie-drools/issues/5818
## Parent issue
- #5678
## Failing tests
- `org.kie.declarativetypes.JavaBeansEventRoleTest#testImportBean`
## Description
- `package` translates to the `PACKAGE` token, which is unexpected in the
package's qualified name.
- The rest of the input is ignored and the parser **does not report an
error**!
## Rule code snippet
```
package some.other.package;
import org.drools.compiler.Bean;
declare Bean
@role(event)
end
```
## Error output
```
00:14:32.657 [main] WARN
o.d.c.k.builder.impl.KieBuilderImpl.packageNameForFile:396 - File 'bean1.drl'
is in folder '' but declares package 'some.other.package'. It is advised to
have a correspondance between package and folder names.
### parse : ANTLR4_PARSER_ENABLED = true
org.junit.ComparisonFailure:
Expecting value to be true but was false
Expected :true
Actual :false
<Click to see difference>
at
java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:67)
at
java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at
org.kie.declarativetypes.JavaBeansEventRoleTest.testImportBean(JavaBeansEventRoleTest.java:115)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]