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.

Bug 34650 - J2SEPlatform is missing description
Summary: J2SEPlatform is missing description
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-27 07:55 UTC by Jaroslav Tulach
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2003-06-27 07:55:11 UTC
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.
Comment 1 Tomas Zezula 2003-06-27 09:48:59 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.
Comment 2 Jaroslav Tulach 2003-06-27 13:26:27 UTC
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.
Comment 3 Tomas Zezula 2003-06-30 10:23:03 UTC
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.
Comment 4 Tomas Zezula 2003-07-09 17:36:57 UTC
Redesigned.
The J2SEPlatform was removed.
JavaPlatform has getSpecification() method and getVendor() method.
Comment 5 Jan Becicka 2003-11-25 14:03:05 UTC
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 --->
Comment 6 Jan Becicka 2003-11-25 14:12:10 UTC
---> CLOSED