Skip to content

Commit

Permalink
Added comment in tutorial detailing apparent bug in HTTPD server
Browse files Browse the repository at this point in the history
  • Loading branch information
bmacgregor committed Mar 11, 2009
1 parent 94496bd commit 12c262c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion httpdsail/src/miniclient/Repository.java
Expand Up @@ -121,7 +121,7 @@ public List<List<String>> getStatements(String subj, String pred, String obj, Ob
* 'context' is a string or a list of strings.
*/
public void addStatement(String subj, String pred, String obj, Object context) {
//System.out.println("ADD STATEMENT " + subj + " " + pred + " " + obj + " " + context);
System.out.println("ADD STATEMENT " + subj + " " + pred + " " + obj + " " + context);
try {
JSONArray row = new JSONArray().put(subj).put(pred).put(obj).put(context);
JSONArray rows = new JSONArray().put(row);
Expand Down
5 changes: 3 additions & 2 deletions httpdsail/src/tutorial/TutorialExamples.java
Expand Up @@ -159,6 +159,7 @@ private static void test5() throws Exception {
conn.add(alice, favoriteColor, red);
conn.add(ted, favoriteColor, rouge);
conn.add(alice, birthdate, date);
// CURRENTLY, THIS LINE CAUSES HTTPD SERVER TO BREAK, BUT ITS NOT THE CLIENT'S FAULT:
conn.add(ted, birthdate, time);
for (Literal obj : new Literal[] {null, fortyTwo, fortyTwoUntyped, f.createLiteral("20.5",
XMLSchema.FLOAT), f.createLiteral("20.5"),
Expand Down Expand Up @@ -570,9 +571,9 @@ public static void main(String[] args) throws Exception {
int lastChoice = 14;
for (int i = 1; i <= lastChoice; i++)
choices.add(new Integer(i));
if (true) {
if (false) {
choices = new ArrayList<Integer>();
choices.add(16);
choices.add(2);
}
try {
for (Integer choice : choices) {
Expand Down

0 comments on commit 12c262c

Please sign in to comment.