This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
What is a meaning of J2SEPlatform interface? Just to add getJavaSpecVersion or getVendorString? Shall not these attributes be part of plain JavaPlatform and this interface deleted? It seems to me that every java platform has a vendor and specification version, this is not J2SE specific. Also J2SEPlatformService adds only the spec version method, which could be moved to PlatformService and thus the whole J2SE platform package deleted. Btw. if you do not delete it, at least crosslink the javadoc with JavaPlatform JavaDoc.
At the beginning the getSpecVersion and getVendorString were operations of the GenericPlatform, but this was not acceptable for ME team. The problem is that J2ME has totally different identification than J2SE. J2SE version identification is e.g 1.4 J2ME looks like this: CLDC 1.0 MIDP 1.0 (Telling that this is CLDC profile verion 1.0 with MIDP 1.0 capability) The platform uses the version to determine compatibility, so this is the reason, why the classes are splitted. The MEPlatform should have methods returning the profile and its version and capabilities and their versions.
I see. There are two possibilities: close the issue as wontfix or define some abstraction of versioning in JavaPlatform. Profile[] JavaPlatform.getProfiles (); class Profile { String getName (); // J2SE, MIDP, etc. String getVersion (); } I was thinking about reusing or being inspired by java.lang.Package http://java.sun.com/j2se/1.4.1/docs/api/java/lang/Package.html or something from our modules http://www.netbeans.org/download/dev/javadoc/OpenAPIs/org/openide/modules/SpecificationVersion.html but that will not work. You would have to define something own.
The abstraction seems nice to me. I will take a look on it with Marin Ryzl, if it is also OK from ME point of view.
Redesigned. The J2SEPlatform was removed. JavaPlatform has getSpecification() method and getVendor() method.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED