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 32865 - Copy Client Binding Code and generated path problem
Summary: Copy Client Binding Code and generated path problem
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: corba (show other bugs)
Version: -S1S-
Hardware: PC All
: P2 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-14 14:52 UTC by David Kaspar
Modified: 2004-03-08 15:52 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Kaspar 2003-04-14 14:52:53 UTC
Copy Client Binding Code action does not generate
correct path.

For example:
1) I have bound some context, and context named
"a" under it, and object named "b" bound in it.
2) Invoke Copy Client Binding Code action on "b"
object.
3) Paste it into Java editor.
4) ERROR - See paste code. It is:
      String[] client_name_hierarchy = new String
[] {"b", ""};
But it should be:
      String[] client_name_hierarchy = new String
[] {"a", "", "b", ""};

If object is bound in root of context - it generates:
      String[] client_name_hierarchy = new String
[] {};

Workaround:
Fill missing path manually.
Comment 1 Antonin Nebuzelsky 2003-04-22 12:38:47 UTC
The bug is not going to be fixed for Nevada/NB 3.5. The bug is
non-destructive and an easy clear workaround exists - the user has to
fill the path in the code manually.

The bug should be fixed for next release and is a good candidate for a
Nevada patch.
Comment 2 Patrick Keegan 2003-04-25 16:17:48 UTC
I'm not sure that this belongs in relnotes since the module is not a
part  of any standard distro at the moment. Nonetheless, I'll craft
this relnote in case we do use it (Tonda and David, please verify):

"In the CORBA module (only available from the Update Center), the Copy
Client Binding Code command does not generate the correct path.

Workaround: Fill in the missing path manually in the Source Editor."

Comment 3 David Kaspar 2003-04-25 16:52:34 UTC
This issue affect Client Java source file generation, when you
generate it using CORBA Wizard.

Please, add following comment too:

This affects generation of Client Java source file from CORBA Wizard. 

Workaround: Fill in the missing path manually in the Source Editor of
Client Java source file.
Comment 4 David Kaspar 2003-05-07 15:06:03 UTC
Problem occurs also when you generate Server source file using CORBA
wizard with Naming Server binding method.
Comment 5 Antonin Nebuzelsky 2003-11-04 14:39:26 UTC
Fixed in Nevada Patch 1 and in Arrow.
Comment 6 Patrick Keegan 2004-03-03 22:35:09 UTC
removing RELNOTE keyword. 

BTW, is this also fixed in trunk?
Comment 7 Antonin Nebuzelsky 2004-03-08 15:52:45 UTC
I don't think it is fixed in trunk. AFAIK corba module development is
discontinued thus the fixes were not front-ported to trunk. CCing
ftsust@netbeans.org for sustaining to be able to follow up on this if
needed.