Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.0.3, JRuby 1.1RC1
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
I'm not sure if this should be disabled somehow and we're not doing that, or if we're actually warning for valid reasons (perhaps because something peripheral is broken) or if these warnings are entirely spurious, but there's extremely annoying. Some snippets from running activesupport's tests (with Rake):
/Users/headius/NetBeansProjects/jruby/lib/ruby/1.8/optparse.rb:1608 warning: Useless use of :: in void context. /Users/headius/NetBeansProjects/jruby/lib/ruby/1.8/optparse.rb:1615 warning: Useless use of :: in void context. /Users/headius/NetBeansProjects/jruby/lib/ruby/1.8/optparse.rb:1716 warning: Useless use of :: in void context. /Users/headius/NetBeansProjects/rails/activesupport/./test/../lib/active_support/vendor/builder/xmlbase.rb:8 warning: Useless use of :: in void context. /Users/headius/NetBeansProjects/rails/activesupport/./test/../lib/active_support/vendor/builder/blankslate.rb:62 warning: Useless use of :: in void context.
And more...the following one prints out a bazillion times...
<script>:0 warning: Useless use of :: in void context. <script>:0 warning: Useless use of :: in void context. <script>:0 warning: Useless use of :: in void context. <script>:0 warning: Useless use of :: in void context. <script>:0 warning: Useless use of :: in void context. <script>:0 warning: Useless use of :: in void context. ... thousands upon thousands of these
These need to be corrected. I have temporarily disabled these warnings in ParserSupport for now, but we need to fix this and re-enable them.
Examine for 1.0...we're probably just warning more than we're supposed to, but it would be nice to know for sure.