Home - Forums-.NET - Spices.Net - Generics bug

Spices.Net

NET code security, tools to protect, obfuscate, tamper defense, code and data safety, recover, convert, optimize, explore, browse and analyze .Net software.

This forum related to following products: Spices.Net Suite, Spices.Net Obfuscator, Spices.Net Decompiler

Generics bug
Link Posted: 20-Nov-2007 04:15
Having downloaded the eval version prior to purchase, my application won't obsfucate, and I've boiled it down to the following bug (?) in Spice:

Example project ( simple windows c# forms app) below.

Obsfucated with the default options, plus 'Overridable' turned on.

Application fails when the button is clicked, with a '... method not implemented...' error from the JIT or some such.

It's getting confused that the override of Fn() in the derived class doesn't match the abstract declaration in the base class ('cos the derived class knows the generic type).

Any solution (other than turning off overridable, which rather reduces the use of obsfucating)?


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WindowsApplication1
{
  public partial class Form1 : Form
  {

    public Form1()
    {
      InitializeComponent();

    }

    private void button1_Click( object sender , EventArgs e )
    {
      new Derived();
    }
  }

  public abstract class Base
  {
    public abstract void Fn( T x );
  }

  public class Derived : Base
  {
    public override void Fn( int x )
    {
    }
  }
}
Link Posted: 20-Nov-2007 04:22
Thanks for the feedback.
That problem is already solved and fixed version will published today.