#7 Ambiguity between Document.open and Document.open()

closed
nobody
None
5
2006-06-14
2006-06-14
fabio
No

I was looking at the samples (e.g. HelloWorld.cs) and
c# compiler was reporting an ambiguity between
com.lowagies.text.Document.open[close] and
com.lowagies.text.Document.open()[close()].

So i downloaded sources, and found that the Document
class has:

protected boolean open/close

and

public void open()/close()

I fixed it by renamig the boolean variables as _open
and _close where required, rebuilt the project and now
it works fine.

I never worked with J# before so don't know if I did it
right. Anyway, I hope this helps.

Discussion

  • Kazuya Ujihara

    Kazuya Ujihara - 2006-06-14
    • status: open --> closed
     
  • Kazuya Ujihara

    Kazuya Ujihara - 2006-06-14

    Logged In: YES
    user_id=734754

    iText.NET for .NET Framework 1.1 version added 'm_'
    prefixes in order to avoid the problem. But, iText.NET
    2005 version is not yet. I will fix in the next version.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks