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 170644 - Option to generate editable proxy classes for Classic Java Card projects
Summary: Option to generate editable proxy classes for Classic Java Card projects
Status: RESOLVED INCOMPLETE
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords:
Depends on: 171367
Blocks: 170636
  Show dependency tree
 
Reported: 2009-08-19 17:15 UTC by _ tboudreau
Modified: 2009-09-02 23:51 UTC (History)
1 user (show)

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 _ tboudreau 2009-08-19 17:15:33 UTC
Java Card 3 is multithreaded while Java Card 2 is not.  Therefore, SharedInterfaceObject classes need proxy classes generated for them.  This is normally done 
transparently at packaging time;  it would be nice to have a Generate Proxies menu item and generate the proxy source files directly (probably into a separate 
source root) and disable auto-generation of proxies at packaging time.
Comment 1 ankinelaturu 2009-08-31 19:55:08 UTC
2 things needed for this proxy things.

1. A popup menu for classic lib/applet project "Generate Proxies"
      This action will create some source file and keeps them under the src.dir
      This menu will trigger the ant target "genproxy".

2. A build time flag in customizer "Use My Proxies"
      propject.properties file is updated with a property use.my.proxies=true/false
      I am updating the pack task to consider this option and pass it on to the packager tool.
Comment 2 _ tboudreau 2009-09-02 23:48:50 UTC
Moving target milestone for this to "next" - if we have time for this in 6.8 will try to get to it, but library support
in build-impl.xsl is much more important and much more work.

A number of things will need to be worked out in order to do implement this, specifically:
 - Does code for generating the proxies already exist somewhere and could it be reused?  Does it work against Java
sources, or .class files?
 - What should the behavior of this action be when the proxies already exist?
 - What should happen if the user unchecks "use my proxies" but the proxies exist?
 - What happens if generate proxies is invoked, but the classes to be proxied are uncompilable?
 - How does the IDE detect if the generated proxy classes are out-of-sync with changes in the actual project classes? 
How should they be synced back up - clobber any hand-written changes?

Generated proxies should be handled as a separate source root.