ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Atomic File Transactions, Part 1
Subject:   Classes don't compile
Date:   2002-01-08 21:23:06
From:   mdubord
nice idea but:


$javac -classpath . com\astrel\io\atomic\*.java
com\astrel\io\atomic\Transaction.java:136: cannot resolve symbol
symbol : class WriteAction
location: class com.astrel.io.atomic.Transaction
return (FileOutputStream) run(new WriteAction(f, append));
^
com\astrel\io\atomic\RenameAction.java:5: com.astrel.io.atomic.RenameAction shou
ld be declared abstract; it does not define execute() in com.astrel.io.atomic.Ac
tion
class RenameAction extends Action {
^
com\astrel\io\atomic\RenameAction.java:16: cannot resolve symbol
symbol : variable Tools
location: class com.astrel.io.atomic.RenameAction
Tools.rename(source, dest);
^
com\astrel\io\atomic\RenameAction.java:29: cannot resolve symbol
symbol : variable Tools
location: class com.astrel.io.atomic.RenameAction
Tools.delete(source);
^
com\astrel\io\atomic\RenameAction.java:31: cannot resolve symbol
symbol : variable Tools
location: class com.astrel.io.atomic.RenameAction
Tools.rename(dest, source);
^
5 errors


1 to 1 of 1
1 to 1 of 1