View Issue Details

IDProjectCategoryView StatusLast Update
0003797JEDI VCL00 JVCL Componentspublic2006-07-06 07:17
Reporterivan_raAssigned Toivan_ra 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product VersionDaily / GIT 
Target VersionFixed in Version3.30 
Summary0003797: TJvInterpreter: error in sintaxis
DescriptionTJvInterpreter cant interpret try-finally-end statement when last identifier in try finally section has not semicolon:
try
  showmessage('test') // raises error
finally end

try
  showmessage('test'); // no error
finally end

The same thing with try-except-end statement
TagsNo tags attached.

Activities

2006-07-06 07:13

 

JvInterpreter.pas.patch (635 bytes)
Index: JvInterpreter.pas
===================================================================
--- JvInterpreter.pas	(revision 10759)
+++ JvInterpreter.pas	(working copy)
@@ -7130,9 +7130,9 @@
   end;
 
 begin
+  NextToken;
   while True do
   begin
-    NextToken;
     case TTyp of
       ttFinally:
         begin
@@ -7145,7 +7145,10 @@
           Exit;
         end;
       ttSemicolon:
-        DoOnStatement;
+        begin
+          DoOnStatement;
+          NextToken;
+        end;
       ttIdentifier, ttBegin, ttIf, ttWhile, ttFor, ttRepeat,
         ttBreak, ttContinue, ttTry, ttRaise, ttExit, ttCase:
         begin

ivan_ra

2006-07-06 07:17

developer   ~0009776

fixed in SVN

Issue History

Date Modified Username Field Change
2006-07-06 07:11 ivan_ra New Issue
2006-07-06 07:13 ivan_ra File Added: JvInterpreter.pas.patch
2006-07-06 07:17 ivan_ra Status new => resolved
2006-07-06 07:17 ivan_ra Fixed in Version => Daily / SVN
2006-07-06 07:17 ivan_ra Resolution open => fixed
2006-07-06 07:17 ivan_ra Assigned To => ivan_ra
2006-07-06 07:17 ivan_ra Note Added: 0009776