Bug 690205

Summary: QPID-3116: rubygen with ruby 1.9
Product: Red Hat Enterprise MRG Reporter: Alan Conway <aconway>
Component: qpid-cppAssignee: Alan Conway <aconway>
Status: CLOSED CURRENTRELEASE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.3CC: jross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid 0.10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-10 22:35:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Alan Conway 2011-03-23 15:15:23 UTC
Description of problem:

Note: this is a build system problem, there's no impact on users.

The ampqgen.rb script appends an underscore to attributes that may conflict with attributes that may already exist in object. The issue is with 'type'. It is an attribute in ruby 1.8.x but not in 1.9.x. The code accesses a type_ attribute in the code which doesn't actually exist when running under 1.9.x because type isn't an attribute. The fis is a simple special case for the type symbol.
Version-Release number of selected component (if applicable):


How reproducible: 100%


Steps to Reproduce:
1. install ruby 1.9
2. build the qpid source tree
  
Actual results: ruby errors in code generation phase


Expected results: no errors


Additional info:

Comment 1 Alan Conway 2011-03-23 15:19:22 UTC
Committed to mrg_2.0.x

df009b1 Bug 690205 - QPID-3116: rubygen with ruby 1.9

Comment 2 Alan Conway 2011-06-27 12:10:17 UTC
Also on upstream trunk r1083889