My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 8: Recursive loading + class inheritance causes PERWAPI.DescriptorException
1 person starred this issue and may be notified of changes. Back to list
Status:  Started
Owner:  ----
Type-Bug
Priority-High
Rails
Product-RubyRuntime


Sign in to add a comment
 
Reported by sasongko, Aug 10, 2007
Create files a.rb and b.rb, add this code to a.rb:

  # a.rb
  require 'b'
  class Cls
  end
  class Cls2 < Cls
  end

and this to b.rb:

  # b.rb
  require 'a'

Running a.rb causes PERWAPI.DescriptorException.

  Unhandled Exception: PERWAPI.DescriptorException: Descriptor is a Def 
when a Ref is required
     at Ruby.Compiler.AST.SOURCEFILE.ExecuteMain(Assembly Assembly, String
[] args) in C:\ruby.net\src\RubyRuntime\Compiler\AST\SourceFile.cs:line 435
     at Ruby.Compiler.AST.SOURCEFILE.ExecuteMain(PEFile Assembly, String[] 
args) in C:\ruby.net\src\RubyRuntime\Compiler\AST\SourceFile.cs:line 413
     at Ruby.Compiler.RubyEntry.Process(String[] args) in 
C:\ruby.net\src\RubyRuntime\Compiler\Ruby.cs:line 43
     at RubyMain.Main(String[] args) in C:\ruby.net\src\Ruby\Main.cs:line 5

The exception is raised from PERWAPI.CILInstructions.MethInst().  I've 
seen another similar error raised from FieldInst() but I don't know if 
they're related.
Comment 1 by sasongko, Sep 05, 2007
(No comment was entered for this change.)
Labels: -Type-Defect -Priority-Medium Type-Bug Priority-High Rails
Comment 2 by sasongko, Sep 05, 2007
(No comment was entered for this change.)
Labels: Product-RubyRuntime
Comment 3 by DrWayneKelly, Sep 13, 2007
Fixed initial problem with MethodDefs

Still need to improve included features testt in rb_f_require to ignore file 
extension and possibly to result paths.
Status: Started
Sign in to add a comment

Hosted by Google Code