Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.pre2
Assignee: Thomas E Enebo
Created: 24/Aug/12 9:23 AM
Description:
class MyClass
  attr_accessor :pred?
end

The above code runs with no error in JRuby 1.7.0-preview2 (and 1.6.7).

In MRI (1.9.2p290), it fails with the exception

in `attr_accessor': invalid attribute name `pred?' (NameError)

It seems Ruby 1.8.2 had the same behavior as JRuby: http://www.ruby-forum.com/topic/89770

See also related topic here: http://www.ruby-forum.com/topic/135195

Project: JRuby
Priority: Minor Minor
Reporter: Patrick Mahoney
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to