Bug 996028

Summary: Upgrade antlr from 3.3 to 3.5 (or 3.4) because 3.3 requires antlr 2.7.
Product: [Retired] JBoss BRMS Platform 6 Reporter: Geoffrey De Smet <gdesmet>
Component: BREAssignee: Edson Tirelli <etirelli>
Status: CLOSED CURRENTRELEASE QA Contact: Lukáš Petrovický <lpetrovi>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: rzhang
Target Milestone: ER2   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:20:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 989519    

Description Geoffrey De Smet 2013-08-12 09:07:50 UTC
Drools-compiler currently depends on:
- org.antlr:antlr-runtime:3.3
- org.antlr:antlr:3.3  (= the antlr-compiler)
- org.antlr:gunit:3.3
- org.antlr:stringtemplate:3.2.1
- antlr:antlr:2.7.7

antlr 3.3 is messed up, because it depends on antlr 2.7.7. antlr 3.4 fixes that problem. Meanwhile antlr 3.5 is available too.
antlr 2.x and antlr 3.x use different package namespaces, so even though EAP 6 has antlr 2.x, it doesn't prevent drools from using antlr 3.x

Requirements:
1) Upgrade antlr from 3.3 to 3.5 (or 3.4 if you prefer that). Consequently, remove the antlr 2.x dependency.
2) Drools-compiler's runtime classpath should only depend on antlr-runtime, it should not depend on antlr (= the antlr-compiler). The maven-antrun-plugin which compiles the *.g files should have an extra dependency to depend antlr (= the antlr-compiler).

Comment 2 Edson Tirelli 2013-08-12 18:52:18 UTC
ANTR upgraded to 3.5. 

Runtime dependencies to Antlr, String Template, and Antlr 2.7.7 removed. Only depends on Antlr Runtime 3.5 now.

Comment 3 JBoss JIRA Server 2013-08-13 10:21:40 UTC
Geoffrey De Smet <ge0ffrey.spam> updated the status of jira DROOLS-157 to Resolved

Comment 4 JBoss JIRA Server 2013-08-13 10:21:40 UTC
Geoffrey De Smet <ge0ffrey.spam> made a comment on jira DROOLS-157

Fixed for 6.0.0.CR2. We now use antlr 3.5.

Comment 5 Geoffrey De Smet 2013-08-13 10:32:39 UTC
jbpm-designer used stringtemplate. I 've upgraded it's stringtemplate usage from 2.3.1 to 4.0.7 to avoid the antlr 2.x dependency.

Comment 6 Lukáš Petrovický 2013-09-02 14:46:34 UTC
ANTLR 3.3 is nowhere to be found, ANTLR 3.5 is present. VERIFIED on ER2.