From fa6bb6306f26a2029b5a6f3104573f9296e290cf Mon Sep 17 00:00:00 2001 From: axelcl Date: Wed, 30 Mar 2005 21:23:57 +0000 Subject: [PATCH 1/1] Patch from Stefan Sigurdsson --- .../phpdt/internal/compiler/parser/Parser.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); -- 1.7.1