dbremner / rubydotnetcompiler

Automatically exported from code.google.com/p/rubydotnetcompiler
0 stars 0 forks source link

ReflectionTypeLoadException on class nesting + subtyping #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:

1. Create a.rb containing:

  class A
  end

  class B
  end

  class A
    class C < B
    end
  end

2. Run Ruby.NET with: Ruby.exe -e "require 'a.rb'"
(`Ruby.exe a.rb` does not trigger the error.)

Expected result:

(Nothing)

Actual result:

  Unhandled Exception: System.Reflection.ReflectionTypeLoadException:
Unable to load one or more of the requested types. Retrieve the
LoaderExceptions property for more information.
     at Ruby.Compiler.AST.SOURCEFILE.ExecuteMain(Assembly Assembly,
String[] args)
     at Ruby.Compiler.AST.SOURCEFILE.ExecuteMain(PEFile Assembly, String[]
args)
     at Ruby.Compiler.RubyEntry.Process(String[] args)
     at RubyMain.Main(String[] args) in C:\ruby.net\src\Ruby\Main.cs:line 5

Original issue reported on code.google.com by sason...@gmail.com on 29 Sep 2007 at 6:49

GoogleCodeExporter commented 8 years ago
Just for the information:
If the script was changed with active code in it. for example adding the below 
line
on the bottom of the script.

A::C.new

Then, 'Ruby.exe a.rb' failed to run with the message (or Dialogbox).
"Process is terminated due to StackOverflowException."

Original comment by art...@gmail.com on 1 Oct 2007 at 4:44

GoogleCodeExporter commented 8 years ago

Original comment by meaningi...@gmail.com on 2 Oct 2007 at 7:00