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 29346 - JMIMapper error handling is under-specified
Summary: JMIMapper error handling is under-specified
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 29347
  Show dependency tree
 
Reported: 2002-12-06 08:41 UTC by _ briansmith
Modified: 2010-09-23 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ briansmith 2002-12-06 08:41:51 UTC
(1) How extensively should the JMIMapper check the
model for well-formedness? That is, should it
assume that the model is well-formed before it
starts? Should it give its "best effort" to find
problems with the metamodel? In particular, should
a JMIMapper implementation verify the model
constraints before starting the actual mapping?

What should the JMIMapper do when it detects a
violation of the rules that are specific to the
JMI specification. For example, a value of
javax.jmi.ignoreLifecycle that is neither "true"
or "false", or a class nested inside another
class, etc.

If the JMIMapper is allowed to do anything besides
silently ignore these types of errors, then I
suggest that we add a new (set of) checked
exception(s) that can be thrown by
JMIMapper.generate(). In particular, if the
JMIMapper checks the constraints from the MOF
metamodel, then it should be possible to get the
set of violated constraints. Similarly, if a
JMI-specific error was found, there should be some
way of finding out what that error was.
Comment 1 Martin Matula 2002-12-06 09:00:00 UTC
changed to request for enhancement
Comment 2 David Strupl 2010-09-23 09:14:04 UTC
I am closing all reports in category Java/Unsupported as wontfix. These should
be dead issues --- if the reported cases are against some live part of the
NetBeans IDE please reopen and we can discuss to which category they belong.