zeroc-ice / ice

All-in-one solution for creating networked applications with RPC, pub/sub, server deployment, and more.
https://zeroc.com
GNU General Public License v2.0
2.04k stars 593 forks source link

Slice2java missing XXXPrxHelper.java, XXXPrxHolder.java etc in files generation #405

Closed hellomrsun closed 5 years ago

hellomrsun commented 5 years ago

Hi,

I've tried to generate Java files of provided sample "Printer.ice" link using Slice2java.exe of Ice 3.7.2 And I try to generate them with Ice 3.4.2. But I've found that a lot of files are missing with Ice 3.7.2.

Could you explain why? Thanks

Ice 3.7.2: command: image generated files: image

Ice 3.4.2: command: image generated files: image

Edit: I've also tried to generate csharp files with slice2cs.exe in Ice 3.7.2, and it generates correctly the XXXPrxHelper etc.

pepone commented 5 years ago

Hi,

Ice 3.7.2 includes two different Java mapping java and java-compat see https://doc.zeroc.com/ice/3.7/language-mappings/java-mapping/selecting-the-java-mapping

We provide a version of the printer demo for both mappings:

There have been substantial changes since 3.4.2 so you better review the documentation and the demos, don't expect to have the same generated files with 3.7.2 and 3.4.2

hellomrsun commented 5 years ago

Thanks pepone for the information

I've tried to use the --compat option, and it did generate a lot more files.

command:

slice2java.exe --compat "..\ice\Printer.ice"

But there are still some differences. image

As I need to migration my application from Ice 3.4.2 to 3.7.2, I think I'll try the --compat version files first.

Thanks,