Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-13-2004
SteveWampler SteveWampler is offline
Registered User
 
 
Join Date: Sep 2003
Posts: 48
assert() in slice2java generated code?

I'm trying to compile the simple Printer.ice example from the manual using JDK 1.4.2 (Redhat
Linux 9.0) and ICE 1.3.0. I get:
----------------------------------------------------------------------------------------------
weaver% javac -extdirs /opt/atst/lib/Java/ext *.java
_PrinterDisp.java:115: warning: as of release 1.4, assert is a keyword, and may not be used as an identifier
assert(false);
^
_PrinterDisp.java:115: cannot resolve symbol
symbol : method assert (boolean)
location: class atst.cs.demoIce._PrinterDisp
assert(false);
^
1 error
1 warning
------------------------------------------------------------------------------------------------

(The Ice.jar and db.jar files are symlinked into the /opt/atst/lib/Java/ext directory.)

Is this to be expected? What should I do to fix it? I don't remember a problem with 1.2.0.

Thanks!
Steve
Reply With Quote
  #2 (permalink)  
Old 04-13-2004
SteveWampler SteveWampler is offline
Registered User
 
 
Join Date: Sep 2003
Posts: 48
Nevermind - I see I need to add the "-source 1.4" option to javac...

Sorry to trouble people.
Reply With Quote
  #3 (permalink)  
Old 04-13-2004
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi Steve,

This is expected. You need to add the options -source 1.4 in order to enable compiler support for the assert keyword.

Take care,
- Mark
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
slice2java task source code xdm Help Center 21 08-04-2008 05:36 PM
Generated C# code indentation kwaclaw Comments 1 11-24-2006 12:58 PM
Java 5.0 code generation for slice2java vsonnathi Comments 2 11-17-2005 02:58 PM
C# code generated for comparison methods kwaclaw Comments 3 10-11-2005 02:54 PM
packageless class generated by Slice2java sylvain Help Center 3 07-06-2003 05:51 PM


All times are GMT -4. The time now is 12:42 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.