|
|
|
|||||
|
Java global package metadata and builtin datatypes
It seems that specifying "java:package:whatever" in a .ice file has a different effect than specifying it on the slice2java command line, at least when the built-in datatypes like ::Ice::StringSeq are used.
Here's a sample file: Code:
#ifndef SPEECHRECOGNITIONLISTENER_ICE
#define SPEECHRECOGNITIONLISTENER_ICE
[["java:package:de.tum.in"]]
#include <Ice/BuiltinSequences.ice>
module jast {
module listener {
interface SpeechRecognitionListener {
void recognizedTurn (string top, ::Ice::StringSeq alternatives);
};
};
};
#endif
Code:
--- test/de/tum/in/jast/listener/_SpeechRecognitionListenerDelM.java 2007-05-
11 15:39:06.000000000 +0100
+++ test2/de/tum/in/jast/listener/_SpeechRecognitionListenerDelM.java 2007-05-
11 15:39:29.000000000 +0100
@@ -24,7 +24,7 @@
{
IceInternal.BasicStream __os = __og.os();
__os.writeString(top);
- de.tum.in.Ice.StringSeqHelper.write(__os, alternatives);
+ Ice.StringSeqHelper.write(__os, alternatives);
}
catch(Ice.LocalException __ex)
{
diff -ur test/de/tum/in/jast/listener/_SpeechRecognitionListenerDisp.java test2/
de/tum/in/jast/listener/_SpeechRecognitionListenerDisp.java
--- test/de/tum/in/jast/listener/_SpeechRecognitionListenerDisp.java 2007-05-
11 15:39:06.000000000 +0100
+++ test2/de/tum/in/jast/listener/_SpeechRecognitionListenerDisp.java 2007-05-
11 15:39:29.000000000 +0100
@@ -82,7 +82,7 @@
String top;
top = __is.readString();
String[] alternatives;
- alternatives = de.tum.in.Ice.StringSeqHelper.read(__is);
+ alternatives = Ice.StringSeqHelper.read(__is);
__obj.recognizedTurn(top, alternatives, __current);
return IceInternal.DispatchStatus.DispatchOK;
}
MEF
__________________
Mary Ellen Foster Technical University of Munich JAST human-robot dialogue system Maintainer of Fedora Ice packages |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IcePy and The global interpreter lock | rc_hz | Comments | 1 | 10-17-2006 10:50 AM |
| Another solution about package mapping in Java | rc_hz | Comments | 4 | 08-23-2006 10:33 PM |
| Metadata directives | bartley | Help Center | 1 | 02-03-2006 02:35 PM |
| package metadata directive - ClassCast Exception | vsonnathi | Bug Reports | 1 | 09-28-2004 11:46 AM |
| c++ metadata | sylvain | Help Center | 5 | 08-06-2003 10:10 AM |