]
Tanmay Kumar Pandey commented on DROOLS-1165:
---------------------------------------------
I even tried upgrading to drools 7.5, I get same error regardless.
Three errors are Error: unable to resolve method using strict-mode:
and
text=Unable to Analyse Expression log.debug
Syntax error on Java EE for 6.4.0.Final (6.3.0.Final worked fine)
-----------------------------------------------------------------
Key: DROOLS-1165
URL:
https://issues.jboss.org/browse/DROOLS-1165
Project: Drools
Issue Type: Bug
Affects Versions: 6.4.0.Final
Environment: Java EE 7, Wildfly
Reporter: Matteo Mortari
Assignee: Mario Fusco
Priority: Minor
Attachments: 20160505.syntaxerroronjavaeefor640f.zip
Hello, not sure if this is actually a Drools issue, or just some compiler error due to
some other dependencies issue. Anyhow attached reproducer contains a DRL syntactically
correct, parses correctly 6.4.0.Final when not on Java EE. When on Java EE instead, fails
to parse lamenting syntax error, snippet:
{code}
[ function valueSizeGEofvalueSizeGEof (line:42): Syntax error, static imports are only
available if source level is 1.5 or greater
valueSizeGEof (line:42): The import java.util.stream.Collectors.groupingBy cannot be
resolved
valueSizeGEof (line:44): Syntax error, static imports are only available if source level
is 1.5 or greater
valueSizeGEof (line:44): The import
com.acme.testaccumulatestreamonjavaee.MapOfList.mapOfList cannot be resolved
valueSizeGEof (line:46): Syntax error, static imports are only available if source level
is 1.5 or greater
valueSizeGEof (line:46): The import
com.acme.testaccumulatestreamonjavaee.EntryKey.entryKey cannot be resolved
valueSizeGEof (line:52): Syntax error, parameterized types are only available if source
level is 1.5 or greater
valueSizeGEof (line:53): Type mismatch: cannot convert from Integer to int
valueSizeGEof (line:54): Syntax error, parameterized types are only available if source
level is 1.5 or greater
valueSizeGEof (line:55): Syntax error, annotations are only available if source level is
1.5 or greater
valueSizeGEof (line:56): Syntax error, parameterized types are only available if source
level is 1.5 or greater
]
{code}
Please notice if using 6.3.0.Final, on Java EE, is OK without errors.
For the reproducer, maven {{clean test}} using profile {{wildfy82-embedded}}. I am using
Arquillian to demonstrate the difference using version 6.3.0.Final Vs 6.4.0.Final.
Can you kindly advise, please?
Thank you
Ciao
MM