Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 16255 - automatic rmic compilation of classes that extend RemoteObject
Summary: automatic rmic compilation of classes that extend RemoteObject
Status: RESOLVED DUPLICATE of bug 7879
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-17 10:42 EDT by Scott Stirling CLA
Modified: 2002-07-24 10:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Stirling CLA 2002-05-17 10:42:20 EDT
As of build 20020425, there is no easy way to run rmic on a class in a project. 
A context-menu option for running rmic on a source file would be a good 
feature, or (even better) automatic rmic compilation of any class that extends 
RemoteObject.  

The use case would be:

1. In a project, user creates a class that extends java.rmi.server.RemoteObject 
or java.rmi.server.UnicastRemoteObject.  Ideally, this should work whether the 
user specifies the superclass in the "New->Class" wizard or creates a vanilla 
class and then later adds the "extends RemoteObject" manually to the class 
declaration.

2. Eclipse detects that the class extends RemoteObject and invokes rmic on the 
class automatically and/or on save and outputs the Stub and Skel classes to the 
project's build output folder.

Other considerations:
- rmic is in tools.jar
Comment 1 Scott Stirling CLA 2002-05-17 10:47:47 EDT
Description below glosses over the proper sequence of events with rmic.  First 
the source file has to be compiled using javac or the built-in Eclipse 
compiler.  Then rmic is run on the output *class* file, not the source file.
Comment 2 David Whiteman CLA 2002-05-17 11:04:48 EDT
This could potentially be implemented with a new launch type, much like the 
AppletViewer one that was recently made available.
Comment 3 Erich Gamma CLA 2002-05-24 20:31:24 EDT
this could be achieved by implementing an rmic builder, that runs as a 
postbuilder of the Java builder.

not planned for 2.0 workaround use Ant
Comment 4 Dirk Baeumer CLA 2002-07-24 10:29:54 EDT
Reopening
Comment 5 Dirk Baeumer CLA 2002-07-24 10:30:07 EDT

*** This bug has been marked as a duplicate of 7879 ***