Bug 996028 - Upgrade antlr from 3.3 to 3.5 (or 3.4) because 3.3 requires antlr 2.7.
Summary: Upgrade antlr from 3.3 to 3.5 (or 3.4) because 3.3 requires antlr 2.7.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: 6.0.0
Assignee: Edson Tirelli
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 989519
TreeView+ depends on / blocked
 
Reported: 2013-08-12 09:07 UTC by Geoffrey De Smet
Modified: 2014-08-06 20:20 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:20:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker DROOLS-157 0 Critical Resolved drools-compiler depends on antlr 2.7.7 and 3.3. Upgrade to antlr 3.4 to avoid having to depend on 2.x and 3.x at the sam... 2013-10-10 16:54:06 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.