Bug 2366 - Effective statments impl merge, retest & bugfix
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / stmt / rfc6020 / WhenStatementImpl.java
index 7e5fc5646ff568a760f622c523021f84857a1576..78d60b19326d513d136ef31e525b3a21ab53fa42 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*
  * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
  *
  * This program and the accompanying materials are made available under the
@@ -39,7 +39,7 @@ public class WhenStatementImpl extends AbstractDeclaredStatement<RevisionAwareXP
 
         @Override public RevisionAwareXPath parseArgumentValue(
                 StmtContext<?, ?, ?> ctx, String value) throws SourceException {
-            return new RevisionAwareXPathImpl(value, false);
+            return new RevisionAwareXPathImpl(value, Utils.isXPathAbsolute(value));
         }
 
         @Override public WhenStatement createDeclared(