Skip to content
Snippets Groups Projects
Commit 603bb271 authored by Terry D. Norbraten's avatar Terry D. Norbraten
Browse files

[Terry N.] errors to System.err

parent 83d5c027
No related branches found
No related tags found
No related merge requests found
...@@ -436,10 +436,10 @@ System.out.println("Invalid field: "); ...@@ -436,10 +436,10 @@ System.out.println("Invalid field: ");
fieldName = (String) fieldStack.peek(); fieldName = (String) fieldStack.peek();
} catch(EmptyStackException e) { } catch(EmptyStackException e) {
if (nodeStack instanceof SimpleStackLogged) { if (nodeStack instanceof SimpleStackLogged) {
System.out.println("Stack Exception: "); System.err.println("Stack Exception: ");
System.out.println(((SimpleStackLogged)nodeStack).toStringHistory()); System.err.println(((SimpleStackLogged)nodeStack).toStringHistory());
System.out.println(((SimpleStackLogged)fieldStack).toStringHistory()); System.err.println(((SimpleStackLogged)fieldStack).toStringHistory());
System.out.println(((SimpleStackLogged)parentTypeStack).toStringHistory()); System.err.println(((SimpleStackLogged)parentTypeStack).toStringHistory());
} }
throw e; throw e;
...@@ -519,11 +519,12 @@ System.out.println("Stack Exception: "); ...@@ -519,11 +519,12 @@ System.out.println("Stack Exception: ");
*/ */
@Override @Override
public void endField() throws SAVException, VRMLException { public void endField() throws SAVException, VRMLException {
String fieldName;
int fieldType = (int) parentTypeStack.peek(); int fieldType = (int) parentTypeStack.peek();
if ((fieldType == FieldConstants.MFNODE) && !fieldHasEndedImplicitly) { if ((fieldType == FieldConstants.MFNODE) && !fieldHasEndedImplicitly) {
String fieldName = (String)fieldStack.pop(); fieldName = (String)fieldStack.pop();
} else { } else {
String fieldName = (String)fieldStack.peek(); fieldName = (String)fieldStack.peek();
} }
if(contentHandler != null && !suppressCalls) if(contentHandler != null && !suppressCalls)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment