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.
Summary: | J2SEPlatform is missing description | ||
---|---|---|---|
Product: | java | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Unsupported | Assignee: | issues@java <issues> |
Status: | CLOSED FIXED | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jaroslav Tulach
2003-06-27 07:55:11 UTC
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 |