Actually, that can't happen, so let's handle it more gracelessly.
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<classpathentry kind="src" path="src/java"/>
|
<classpathentry kind="src" path="src/java"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ant.jar"/>
|
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ant.jar"/>
|
||||||
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ehcache.jar"/>
|
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/ehcache.jar" sourcepath="/HOMESRC/ehcache-1.5.0-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/google-collect.jar"/>
|
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/google-collect.jar"/>
|
||||||
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/junit4.jar"/>
|
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/junit4.jar"/>
|
||||||
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/velocity-1.5-dev.jar"/>
|
<classpathentry exported="true" kind="var" path="EXT_LIBS_DIR/velocity-1.5-dev.jar"/>
|
||||||
|
|||||||
@@ -179,7 +179,7 @@ public class HSQLBuilder
|
|||||||
case YEAR:
|
case YEAR:
|
||||||
return "year";
|
return "year";
|
||||||
case EPOCH:
|
case EPOCH:
|
||||||
throw new IllegalArgumentException("HSQL doesn't have a direct function for epoch");
|
// internal error, EPOCH is handled in the calling function, fall through to error
|
||||||
}
|
}
|
||||||
throw new IllegalArgumentException("Unknown date part: " + part);
|
throw new IllegalArgumentException("Unknown date part: " + part);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user