HighTechTalks DotNet Forums  

"Interface implemented twice" compiler bug?

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss "Interface implemented twice" compiler bug? in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
chrismo
 
Posts: n/a

Default "Interface implemented twice" compiler bug? - 03-28-2006 , 02:20 PM






Given this file (Stuff.js):

public class MyClass
{
public static interface MyInterface
{
public void DoThingA();
}
}

public class MyOtherClass
{
public static interface MyInterface
{
public void DoThingB();
}
}

public class MyImplementer implements MyClass.MyInterface,
MyOtherClass.MyInterface
{
public void DoThingA() {};
public void DoThingB() {};

public static void main(String[] args) {}
}

Doesn't compile in 2.0 J#:

C:\TEMP\vjs>vjc Stuff.js
Microsoft Visual J# (R) Compiler version 8.0.50727.42
for Microsoft (R) .NET Framework version 2.0.50727
Copyright (C) Microsoft Corp 2000-2002. All rights reserved.

Stuff.js(17,8): error VJS1159: Interface 'MyInterface' is implemented
twice

C:\TEMP\vjs>

But compiles fine in prior version:

C:\TEMP\vjs>\WINDOWS\Microsoft.NET\Framework\v1.1. 4322\vjc.exe Stuff.js
Microsoft (R) Visual J# .NET Compiler version 7.10.3077.0
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corp 2000-2002. All rights reserved.

C:\TEMP\vjs>


Is this a compiler bug? Seems to me it should compile. (Same results
whether the interfaces are declared static or not).


Reply With Quote
  #2  
Old   
chrismo
 
Posts: n/a

Default Re: "Interface implemented twice" compiler bug? - 03-29-2006 , 10:49 AM






Got a reply in this forum post:
http://forums.microsoft.com/MSDN/Sho...21320&SiteID=1
-- it's a known bug:
http://lab.msdn.microsoft.com/produc...f-beffee69ea1e


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.