[mapguide-trac] #9: Java API is non-standard
MapGuide Open Source
trac_mapguide at osgeo.org
Thu Mar 8 16:32:13 EST 2007
#9: Java API is non-standard
--------------------------------+-------------------------------------------
Reporter: jec at gatekeeper.com | Owner:
Type: enhancement | Status: new
Priority: medium | Milestone:
Component: Web API | Version:
Severity: major | Resolution:
Keywords: | External_id: 916041
--------------------------------+-------------------------------------------
Changes (by robertbray):
* type: defect => enhancement
Old description:
> The Java API generated by the SWIG toolkit does not conform to the
> standards and conventions used in Java programming. The SWIG java
> configuration should be changed to do the following
>
> 1. method calls should being with lowercase letters
>
> 2. methods should not call unchecked exceptions. Easiest thing to do
> would be for exceptions to extend RuntimeException instead of Exception
>
> 3. collection classes should implement collection interface from
> java.util
>
> 4. javadoc comments with API docs embedded into the source files. Source
> files distributed with installation so that developers using IDEs can
> leverage full power of IDE
>
> Note that I don't think that this can be done and still maintain backward
> compatibility with existing API.
New description:
The Java API generated by the SWIG toolkit does not conform to the
standards and conventions used in Java programming. The SWIG java
configuration should be changed to do the following
1. method calls should being with lowercase letters
2. methods should not call unchecked exceptions. Easiest thing to do would
be for exceptions to extend !RuntimeException instead of Exception
3. collection classes should implement collection interface from java.util
4. javadoc comments with API docs embedded into the source files. Source
files distributed with installation so that developers using IDEs can
leverage full power of IDE
Note that I don't think that this can be done and still maintain backward
compatibility with existing API.
Comment:
If possible we should look at changing the code to generate both the new
"enhanced" and old "crufty" Java wrappers. That would provide a resolution
to the compatibility issues created by changing the API.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/9#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list