Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.0.1
-
Fix Version/s: JRuby 1.0.3, JRuby 1.1RC2
-
Component/s: JRuby-extras
-
Labels:None
-
Environment:% jruby -v
ruby 1.8.5 (2007-08-23 rev 4201) [i386-jruby1.0.1]
-
Number of attachments :
Description
I get the following problem.
% jruby -ryaml -d -e 'YAML.load(:symbol.to_yaml)'
file:/home/tooru/share/jruby-1.0.1/lib/jruby.jar!/builtin/javasupport/proxy/concrete.rb:5 warning: `*' interpreted as argument prefix # <= unrelated this issue.
file:/home/tooru/share/jruby-1.0.1/lib/jruby.jar!/builtin/javasupport/proxy/interface.rb:7 warning: `&' interpreted as argument prefix # <= unrelated this issue.
<script>:0 warning: Useless use of a literal in void context. # <= This!
A lot of Symbols are included in YAML,
a large amount of this messages are displayed.
This message is generated only in JRuby and it is not generated in Ruby (Matz Ruby).
My CRuby version is
% ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-freebsd5]
My best regards.
There's another bug for the "useless use" thing, but I'll leave this open since I can't find it right now. Ideally, fix for 1.0.2 and 1.1.