JRuby

spurious warning messages when yaml is analized with debug option.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor 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 :
    0

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.

Activity

Hide
Charles Oliver Nutter added a comment -

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.

Show
Charles Oliver Nutter added a comment - 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.
Hide
Charles Oliver Nutter added a comment -

Warnings are pretty non-offensive, and we haven't had any time to dig into this. Bumping off 1.0.2.

Show
Charles Oliver Nutter added a comment - Warnings are pretty non-offensive, and we haven't had any time to dig into this. Bumping off 1.0.2.
Hide
Tooru Takahashi added a comment -

Hi, I found that this branching point is revision 4502.
The log message of r4502 is "Fix for JRUBY-1403, handle symbols in YAML a bit better", and
I created this issue (JRUBY-1403).

It seems that this correction has worked well, but I found different petty issue.

% jruby -v
ruby 1.8.5 (2007-11-01 rev 4810) [i386-jruby1.0.2]
% jruby -d -e ':sym'
-e:1 warning: Useless use of a literal in void context.
% jruby -d -e ':"sym"'
(Nothing is displayed)

MRI outputs warning message in both case.

Should I post it as another issue?

best regard.

Show
Tooru Takahashi added a comment - Hi, I found that this branching point is revision 4502. The log message of r4502 is "Fix for JRUBY-1403, handle symbols in YAML a bit better", and I created this issue (JRUBY-1403). It seems that this correction has worked well, but I found different petty issue. % jruby -v ruby 1.8.5 (2007-11-01 rev 4810) [i386-jruby1.0.2] % jruby -d -e ':sym' -e:1 warning: Useless use of a literal in void context. % jruby -d -e ':"sym"' (Nothing is displayed) MRI outputs warning message in both case. Should I post it as another issue? best regard.
Hide
Charles Oliver Nutter added a comment -

Yes, please submit a separate issue for the weird symbol handling.

Show
Charles Oliver Nutter added a comment - Yes, please submit a separate issue for the weird symbol handling.
Hide
Tooru Takahashi added a comment -

OK, I created JRUBY-1541.

Show
Tooru Takahashi added a comment - OK, I created JRUBY-1541.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: