Compile error
Haavard Bjerke <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
I'm just getting started making my own component for setting up Xen VMs with
Smartfrog. I've followed the tutorial paper, and I get this compile error:
/opt/SmartFrog.3.06.016rc2/src/org/smartfrog/sfcore/logging/LogFactory.java:191:
warning: as of release 1.4, assert is a keyword, and may not be used as an
identifier
assert log!=null;
^
/opt/SmartFrog.3.06.016rc2/src/org/smartfrog/sfcore/logging/LogFactory.java:191:
';' expected
assert log!=null;
^
/opt/SmartFrog.3.06.016rc2/src/org/smartfrog/sfcore/logging/LogFactory.java:191:
cannot resolve symbol
symbol : class assert
location: class org.smartfrog.sfcore.logging.LogFactory
assert log!=null;
^
...
The very simple source code is attached. How can I solve this problem?
Thanks,
Havard
xen.java
(text/plain, 1 KB)
import org.smartfrog.sfcore.prim.Prim;
import org.smartfrog.sfcore.prim.TerminationRecord;
import org.smartfrog.sfcore.prim.PrimImpl;
import org.smartfrog.sfcore.common.SmartFrogException;
import java.rmi.RemoteException;
public class xen extends PrimImpl implements Prim {
/* any component specific declarations */
public xen() throws RemoteException {
}
public synchronized void sfDeploy() throws RemoteException, SmartFrogException {
super.sfDeploy();
/* any component specific initialization code */
System.out.println("super.sfDeploy()");
}
public synchronized void sfStart() throws RemoteException, SmartFrogException {
super.sfStart();
/* any component specific start-up code */
System.out.println("sfStart()");
}
public synchronized void sfTerminateWith(TerminationRecord tr) {
/* any component specific termination code */
super.sfTerminateWith(tr);
System.out.println("sfTerminateWith()");
}
/* any component specific methods go here*/
}