Java creator criticizes .Net
{{byline|date=February 5, 2005|location=[[w:Australia|Australia]]}}
[[w:James Gosling|James Gosling]], the creator of the [[w:Java programming language|Java programming language]], said last week that he believes [[w:Microsoft|Microsoft]] is wrong in its decision to support [[w:C programming language|C]] and [[w:C Plus Plus|C++]] programming languages in the common language runtime in [[w:Microsoft .NET|Microsoft .NET]]. According to him, this decision may lead to severe security flaws in .NET. Gosling is currently in Australia, giving talks and visiting friends.

According to Gosling, the problem lies with the programming languages and some of their characteristics: “C++ allowed you to do arbitrary casting, arbitrary adding of images and pointers, and converting them back and forth between pointers in a very, very unstructured way." 

The Java language was developed due to limitations of C++. Gosling began using C++ for the former [[w:Sun Microsystems|Sun Microsystems]]'s star-seven project. At that time Gosling concluded C++ was inadequate and created the Oak language. The Oak language would become the language known today as Java. The former star-seven project shares its defining characteristics with networked software applications today: safety and portability.

Gosling continues: "If you look at the security model in Java and the reliability model, and a lot of things in the exception handling, they depend really critically on the fact that there is some integrity to the properties of objects. So if somebody gives you an object and says 'This is an image', then it is an image. It's not like a pointer to a stream, where it just casts an image."

Charles Sterling, a Microsoft developer and product manager of the .NET framework, didn’t entirely disagree with Gosling’s thoughts. But he said that .NET defines different types of code. And there is the code which is managed by the .NET framework. All new Microsoft languages, such as [[w:C Sharp programming language|C#]] and [[w:Visual Basic|Visual Basic.NET]], produce only code managed by the .NET framework, so they are safe.

A key idea that has not shown up in Gosling's talk is that Java itself allows a very similar process to occur. Java's JNI (Java Native Interface) allows the integration of the same unsafe code that prompted Gosling's central thesis.

However, Gosling says languages like C and C++ can still produce unsafe code which would not follow the rules of safety of .NET. This sort of code, usually found in old software applications, requires additional .NET permissions to execute. Sterling says it is up to developers to decide whether or not to use unsafe code in their .NET applications.

==References==
*{{source|url=http://it.slashdot.org/it/05/02/04/2139259.shtml?tid=172&tid=109&tid=108&tid=102&tid=1
|title=Gosling Claims Huge Security Hole in .NET
|author=CowboyNeal 
|pub=Slashdot
|date=February 4, 2005}}

*{{source|url=http://www.zdnet.com.au/news/security/0,2000061744,39179932,00.htm
|title=Huge security hole in .NET: Java creator
|author=Renai LeMay
|pub=ZDNet Australia
|date=February 4, 2005}}

 
 {{archive}}
[[Category:Science and technology]]
[[Category:Australia]]
[[Category:Published]]
[[Category:Computing]]
James Gosling, the creator of the Java programming language, said last week that he believes Microsoft is wrong in its decision to support C and C++ programming languages in the common language runtime in Microsoft .NET. According to him, this decision may lead to severe security flaws in .NET. Gosling is currently in Australia, giving talks and visiting friends.

According to Gosling, the problem lies with the programming languages and some of their characteristics: “C++ allowed you to do arbitrary casting, arbitrary adding of images and pointers, and converting them back and forth between pointers in a very, very unstructured way." 

The Java language was developed due to limitations of C++. Gosling began using C++ for the former Sun Microsystems's star-seven project. At that time Gosling concluded C++ was inadequate and created the Oak language. The Oak language would become the language known today as Java. The former star-seven project shares its defining characteristics with networked software applications today: safety and portability.

Gosling continues: "If you look at the security model in Java and the reliability model, and a lot of things in the exception handling, they depend really critically on the fact that there is some integrity to the properties of objects. So if somebody gives you an object and says 'This is an image', then it is an image. It's not like a pointer to a stream, where it just casts an image."

Charles Sterling, a Microsoft developer and product manager of the .NET framework, didn’t entirely disagree with Gosling’s thoughts. But he said that .NET defines different types of code. And there is the code which is managed by the .NET framework. All new Microsoft languages, such as C# and Visual Basic.NET, produce only code managed by the .NET framework, so they are safe.

A key idea that has not shown up in Gosling's talk is that Java itself allows a very similar process to occur. Java's JNI (Java Native Interface) allows the integration of the same unsafe code that prompted Gosling's central thesis.

However, Gosling says languages like C and C++ can still produce unsafe code which would not follow the rules of safety of .NET. This sort of code, usually found in old software applications, requires additional .NET permissions to execute. Sterling says it is up to developers to decide whether or not to use unsafe code in their .NET applications.

*
Science and technology Australia Published Computing