Created
December 21, 2011 18:59
-
-
Save nicklewis/1507211 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RubyFileStat.java:365:in `cmp': java.lang.ClassCastException: org.jruby.RubySymbol cannot be cast to org.jruby.RubyFileStat | |
from RubyFileStat$i$1$0$cmp.gen:65535:in `call' | |
from RuntimeHelpers.java:2513:in `invokedynamic' | |
from RubyComparable.java:117:in `callCmpMethod' | |
from RubyComparable.java:103:in `op_equal' | |
from RubyComparable$s$1$0$op_equal.gen:65535:in `call' | |
from CachingCallSite.java:312:in `cacheAndCall' | |
from CachingCallSite.java:169:in `call' | |
from EqCallSite.java:37:in `call' | |
from CallOneArgNode.java:57:in `interpret' | |
from IfNode.java:111:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from CallNoArgNode.java:63:in `interpret' | |
from IfNode.java:111:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from CallNoArgNode.java:63:in `interpret' | |
from AttrAssignTwoArgNode.java:36:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from IfNode.java:119:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:347:in `yield' | |
from InterpretedBlock.java:304:in `yield' | |
from Block.java:130:in `yield' | |
from RubyArray.java:1605:in `eachCommon' | |
from RubyArray.java:1612:in `each' | |
from RubyArray$i$0$0$each.gen:65535:in `call' | |
from CachingCallSite.java:142:in `callBlock' | |
from CachingCallSite.java:153:in `callIter' | |
from CallNoArgBlockNode.java:64:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:169:in `call' | |
from DefaultMethod.java:171:in `call' | |
from SuperCallSite.java:144:in `callBlock' | |
from SuperCallSite.java:151:in `call' | |
from SuperCallSite.java:107:in `callVarargs' | |
from ZSuperNode.java:102:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from VCallNode.java:86:in `interpret' | |
from LocalAsgnNode.java:123:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from CallNoArgNode.java:63:in `interpret' | |
from LocalAsgnNode.java:123:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:190:in `call' | |
from DefaultMethod.java:179:in `call' | |
from CachingCallSite.java:167:in `call' | |
from FCallOneArgNode.java:36:in `interpret' | |
from CallNoArgBlockNode.java:60:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from RescueNode.java:216:in `executeBody' | |
from RescueNode.java:120:in `interpretWithJavaExceptions' | |
from RescueNode.java:110:in `interpret' | |
from EnsureNode.java:96:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:190:in `call' | |
from DefaultMethod.java:179:in `call' | |
from CachingCallSite.java:167:in `call' | |
from CallOneArgNode.java:57:in `interpret' | |
from LocalAsgnNode.java:123:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from RescueNode.java:216:in `executeBody' | |
from RescueNode.java:120:in `interpretWithJavaExceptions' | |
from RescueNode.java:110:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:233:in `call' | |
from DefaultMethod.java:195:in `call' | |
from CachingCallSite.java:201:in `call' | |
from FCallTwoArgNode.java:38:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from IfNode.java:119:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:190:in `call' | |
from DefaultMethod.java:179:in `call' | |
from CachingCallSite.java:167:in `call' | |
from FCallOneArgNode.java:36:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:295:in `yield' | |
from InterpretedBlock.java:229:in `yieldSpecific' | |
from Block.java:99:in `yieldSpecific' | |
from ZYieldNode.java:25:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:295:in `yield' | |
from InterpretedBlock.java:229:in `yieldSpecific' | |
from Block.java:99:in `yieldSpecific' | |
from ZYieldNode.java:25:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:169:in `call' | |
from DefaultMethod.java:171:in `call' | |
from WrapperMethod.java:74:in `call' | |
from CachingCallSite.java:142:in `callBlock' | |
from CachingCallSite.java:153:in `callIter' | |
from CallNoArgBlockNode.java:64:in `interpret' | |
from LocalAsgnNode.java:123:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:169:in `call' | |
from DefaultMethod.java:171:in `call' | |
from CachingCallSite.java:142:in `callBlock' | |
from CachingCallSite.java:153:in `callIter' | |
from FCallNoArgBlockNode.java:32:in `interpret' | |
from DAsgnNode.java:110:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from IfNode.java:119:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:347:in `yield' | |
from InterpretedBlock.java:304:in `yield' | |
from Block.java:130:in `yield' | |
from YieldNode.java:113:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from IfNode.java:117:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from WhileNode.java:131:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:169:in `call' | |
from DefaultMethod.java:171:in `call' | |
from CachingCallSite.java:302:in `cacheAndCall' | |
from CachingCallSite.java:144:in `callBlock' | |
from CachingCallSite.java:153:in `callIter' | |
from CallNoArgBlockNode.java:64:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from CallNoArgNode.java:63:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from EnsureNode.java:96:in `interpret' | |
from BeginNode.java:83:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from RescueNode.java:216:in `executeBody' | |
from RescueNode.java:120:in `interpretWithJavaExceptions' | |
from RescueNode.java:110:in `interpret' | |
from EnsureNode.java:96:in `interpret' | |
from BeginNode.java:83:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from EnsureNode.java:96:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:169:in `call' | |
from DefaultMethod.java:171:in `call' | |
from CachingCallSite.java:302:in `cacheAndCall' | |
from CachingCallSite.java:144:in `callBlock' | |
from CachingCallSite.java:153:in `callIter' | |
from CallNoArgBlockNode.java:64:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:295:in `yield' | |
from InterpretedBlock.java:229:in `yieldSpecific' | |
from Block.java:99:in `yieldSpecific' | |
from /Users/nicklewis/.rvm/rubies/jruby-1.6.5/lib/ruby/1.8/sync.rb:224:in `chained_0_ensure_1$RUBY$__ensure__' | |
from /Users/nicklewis/.rvm/rubies/jruby-1.6.5/lib/ruby/1.8/sync.rb:222:in `__file__' | |
from /Users/nicklewis/.rvm/rubies/jruby-1.6.5/lib/ruby/1.8/sync.rb:-1:in `__file__' | |
from AbstractScript.java:38:in `__file__' | |
from JittedMethod.java:147:in `call' | |
from DefaultMethod.java:174:in `call' | |
from AliasMethod.java:81:in `call' | |
from CachingCallSite.java:302:in `cacheAndCall' | |
from CachingCallSite.java:144:in `callBlock' | |
from CachingCallSite.java:153:in `callIter' | |
from CallNoArgBlockNode.java:64:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:276:in `call' | |
from DefaultMethod.java:211:in `call' | |
from CachingCallSite.java:352:in `cacheAndCall' | |
from CachingCallSite.java:237:in `call' | |
from CallThreeArgNode.java:61:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:169:in `call' | |
from DefaultMethod.java:171:in `call' | |
from CachingCallSite.java:302:in `cacheAndCall' | |
from CachingCallSite.java:144:in `callBlock' | |
from CachingCallSite.java:148:in `call' | |
from RubyClass.java:806:in `newInstance' | |
from RubyClass$i$newInstance.gen:65535:in `call' | |
from JavaMethod.java:249:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from CallNoArgNode.java:63:in `interpret' | |
from LocalAsgnNode.java:123:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from RescueNode.java:216:in `executeBody' | |
from RescueNode.java:120:in `interpretWithJavaExceptions' | |
from RescueNode.java:110:in `interpret' | |
from BeginNode.java:83:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from VCallNode.java:86:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from IfNode.java:119:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from VCallNode.java:86:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:295:in `yield' | |
from InterpretedBlock.java:229:in `yieldSpecific' | |
from Block.java:99:in `yieldSpecific' | |
from ZYieldNode.java:25:in `interpret' | |
from LocalAsgnNode.java:123:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:212:in `call' | |
from DefaultMethod.java:187:in `call' | |
from CachingCallSite.java:322:in `cacheAndCall' | |
from CachingCallSite.java:178:in `callBlock' | |
from CachingCallSite.java:187:in `callIter' | |
from FCallOneArgBlockNode.java:34:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:112:in `INTERPRET_BLOCK' | |
from InterpretedBlock.java:374:in `evalBlockBody' | |
from InterpretedBlock.java:295:in `yield' | |
from InterpretedBlock.java:229:in `yieldSpecific' | |
from Block.java:99:in `yieldSpecific' | |
from ZYieldNode.java:25:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from RescueNode.java:216:in `executeBody' | |
from RescueNode.java:120:in `interpretWithJavaExceptions' | |
from RescueNode.java:110:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:212:in `call' | |
from DefaultMethod.java:187:in `call' | |
from CachingCallSite.java:322:in `cacheAndCall' | |
from CachingCallSite.java:178:in `callBlock' | |
from CachingCallSite.java:187:in `callIter' | |
from FCallOneArgBlockNode.java:34:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from CallNoArgNode.java:63:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from BlockNode.java:71:in `interpret' | |
from IfNode.java:117:in `interpret' | |
from NewlineNode.java:104:in `interpret' | |
from ASTInterpreter.java:75:in `INTERPRET_METHOD' | |
from InterpretedMethod.java:147:in `call' | |
from DefaultMethod.java:163:in `call' | |
from CachingCallSite.java:292:in `cacheAndCall' | |
from CachingCallSite.java:135:in `call' | |
from /Users/nicklewis/projects/puppet/bin/puppet:4:in `__file__' | |
from /Users/nicklewis/projects/puppet/bin/puppet:-1:in `load' | |
from Ruby.java:693:in `runScript' | |
from Ruby.java:686:in `runScript' | |
from Ruby.java:593:in `runNormally' | |
from Ruby.java:442:in `runFromMain' | |
from Main.java:321:in `doRunFromMain' | |
from Main.java:241:in `internalRun' | |
from Main.java:207:in `run' | |
from Main.java:191:in `run' | |
from Main.java:171:in `main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/puppet/type/file.rb b/lib/puppet/type/file.rb | |
index a7608c9..9b941d4 100644 | |
--- a/lib/puppet/type/file.rb | |
+++ b/lib/puppet/type/file.rb | |
@@ -694,7 +694,7 @@ Puppet::Type.newtype(:file) do | |
# but can also keep track of a failed stat (@stat == nil). This also allows | |
# us to re-stat on demand by setting @stat = :needs_stat. | |
def stat | |
- return @stat unless @stat == :needs_stat | |
+ return @stat unless :needs_stat == @stat | |
method = :stat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a JRuby bug that's been fixed, but isn't released yet (as I write this, 1.6.5 is the latest version). I'll attach a workaround patch for Puppet.