| Issue 8: | Recursive loading + class inheritance causes PERWAPI.DescriptorException | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
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.
|
||||||||||||
,
Sep 05, 2007
(No comment was entered for this change.)
Labels: -Type-Defect -Priority-Medium Type-Bug Priority-High Rails
|
|||||||||||||
,
Sep 05, 2007
(No comment was entered for this change.)
Labels: Product-RubyRuntime
|
|||||||||||||
,
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
|
|||||||||||||
|
|
|||||||||||||