axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From era...@apache.org
Subject svn commit: r788686 - /webservices/axis2/trunk/java/modules/corba/src/org/apache/axis2/corba/idl/PreProcessorInputStream.java
Date Fri, 26 Jun 2009 13:04:24 GMT
Author: eranga
Date: Fri Jun 26 13:04:24 2009
New Revision: 788686

URL: http://svn.apache.org/viewvc?rev=788686&view=rev
Log:
Fix for AXIS2-4384



Modified:
    webservices/axis2/trunk/java/modules/corba/src/org/apache/axis2/corba/idl/PreProcessorInputStream.java

Modified: webservices/axis2/trunk/java/modules/corba/src/org/apache/axis2/corba/idl/PreProcessorInputStream.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/corba/src/org/apache/axis2/corba/idl/PreProcessorInputStream.java?rev=788686&r1=788685&r2=788686&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/corba/src/org/apache/axis2/corba/idl/PreProcessorInputStream.java
(original)
+++ webservices/axis2/trunk/java/modules/corba/src/org/apache/axis2/corba/idl/PreProcessorInputStream.java
Fri Jun 26 13:04:24 2009
@@ -213,7 +213,7 @@
             throws PreProcessorException {
         try {
             File incFile;
-            if (include.startsWith("\"") && include.startsWith("\"")) {
+            if (include.startsWith("\"") && include.endsWith("\"")) {
                 include = include.replaceAll("\"", "");
                 incFile = new File(include);
                 if (incFile.exists()) {
@@ -241,7 +241,7 @@
                 throw new PreProcessorException("Unable to resolve include "
                         + include + lineNoString);
 
-            } else if (include.startsWith("<") && include.startsWith(">"))
{
+            } else if (include.startsWith("<") && include.endsWith(">")) {
                 include = include.replaceAll("<", "");
                 include = include.replaceAll(">", "");
 



Mime
View raw message