Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Visual J# / March 2006

Tip: Looking for answers? Try searching our database.

"Interface implemented twice" compiler bug?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chrismo - 28 Mar 2006 20:20 GMT
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).
chrismo - 29 Mar 2006 16:49 GMT
Got a reply in this forum post:
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=321320&SiteID=1
-- it's a known bug:
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=f1b7d
9c3-6e8d-4a61-942f-beffee69ea1e


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.