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: | Device should be stopped or restarted after changing device parameters | ||
---|---|---|---|
Product: | javacard | Reporter: | msmirnov |
Component: | Java Card | Assignee: | onkentes |
Status: | NEW --- | ||
Severity: | normal | Keywords: | RELNOTE |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
msmirnov
2010-06-02 12:12:52 UTC
This is tricky. There may be so many issues if we just stop the service. For example it may be in the middle of debug session, or few application are in progress and so on. One solution could be, DO NOT let any changes if a device is in running state. So, to make any changes to the device configuration, one has to stop it first and then change any settings. We have to warn that "resume" will be an issue. Resume always takes whatever was saved earlier. So resume becomes invalid. Solution: I would say, DO NOT make any device editable after it got created. Think it as a chip came out of factory. NOT allowed to change the memory for that chip. It only can happen at manufacturing time. If changes are required users can create a new device with new configuration. The IDE should still have a handle on the cjcre.exe process if it started it (it tracks them to ensure they are terminated on shutdown - look for a call to Runtime.getRuntime().addShutdownHook() in source). So I'd suggest: - Allow user to modify the device - it's easy to decide you need to change memory limits, etc., so we should not make this hard or non-obvious - This could definitely make a mess if the user has the card in a known state and is using it (debug session, whatever) - If the device is running (you can get the status - just get the device instance from the node and check its state), then offer the options "Stop emulator and apply changes" or "Discard changes" Reassigning a bunch of bugs still assigned to me - I haven't worked for Oracle in almost a year. Uy... I *am* the default assignee for javacard... changing owner |