Issue Type: Bug Bug
Affects Versions: JRuby 1.7.0.RC1
Assignee: Thomas E Enebo
Created: 04/Oct/12 9:55 AM
Description:

The Ant integration spits out warnings about instance variables on non-persistent Java types. Try running the following command to see them:

ruby -e 'require "ant"; ant { echo :message => "hello" }'

prints

~/.rvm/rubies/jruby-1.7.0.RC1/lib/ruby/shared/ant/element.rb:61 warning: instance vars on non-persistent Java type Java::OrgApacheToolsAnt::UnknownElement (http://wiki.jruby.org/Persistence)

It happens when a Ruby instance variable is created in a attr_accessor added to a Java class, the call is here: https://github.com/jruby/jruby/blob/master/lib/ruby/shared/ant/element.rb#L62 but the error probably happens here https://github.com/jruby/jruby/blob/master/lib/ruby/shared/ant/element.rb#L9

This looks like JRUBY-6721, but I'm not sure since that is marked as fixed.

Environment: jruby 1.7.0.RC1 (1.9.3p203) 2012-09-25 8e849de on Java HotSpot(TM) 64-Bit Server VM 1.7.0_04-b21 [darwin-x86_64]
Project: JRuby
Priority: Major Major
Reporter: Theo Hultberg
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