Patch from Stefan Sigurdsson
authoraxelcl <axelcl>
Wed, 30 Mar 2005 21:23:57 +0000 (21:23 +0000)
committeraxelcl <axelcl>
Wed, 30 Mar 2005 21:23:57 +0000 (21:23 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java

index b1ddd61..6824bd6 100644 (file)
@@ -4332,7 +4332,7 @@ public class Parser implements ITerminalSymbols, CompilerModifiers, ParserBasicI
     } else {
       String name = file.getName();
       tokens = new char[1][];
-      tokens[0] = name.substring(0, ext.length() - fileExtensionLength).toCharArray();
+      tokens[0] = name.substring(0, name.length() - fileExtensionLength).toCharArray();
     }
 
     this.compilationUnit.currentPackage = impt = new ImportReference(tokens, new char[0], 0, 0, true);