From: axelcl Date: Wed, 30 Mar 2005 21:23:57 +0000 (+0000) Subject: Patch from Stefan Sigurdsson X-Git-Url: http://git.phpeclipse.com Patch from Stefan Sigurdsson --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java index b1ddd61..6824bd6 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/parser/Parser.java @@ -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);