Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[stellation-res] latest CVS does not compute^Wcompile

I have synched to the latest CVS and when I compile using "ant bundle"
in misc I get:
   /usr/local/src/stellation/org.eclipse.stellation/plugins/org.eclipse.stellation.core/src/org/eclipse/stellation/repos/UpdateManager.java:371:13:383:26:
   Error: The method "int executeUpdateStatement(java.lang.String $1);"
   can throw the checked exception
   "org/eclipse/stellation/repos/database/DatabaseException", but its
   invocation is neither enclosed in a try statement that can catch that
   exception nor in the body of a method or constructor that "throws"
   that exception.

Adding 
   import org.eclipse.stellation.repos.database.DatabaseException;
to 
   core/src/org/eclipse/stellation/repos/UpdateManager.java
fixes the compilation problem. Yes, I see that there is an 
   import org.eclipse.stellation.repos.database.*;
but jikes1.15 still chokes.

Now speaking of that, I think we should remove the * imports (regardless
of whenever jikes likes them or not) because they make it harder to
follow what a class really needs.

florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4

Attachment: pgpzthxJn3fOl.pgp
Description: PGP signature


Back to the top