﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1184	Problem with name lookup when using classDirectory()	Jan Brugård	Jan Brugård	"Consider the following package:

{{{
package Utilities ""Utility classes usually not directly utilized by the user""
  extends Icons.Package;
  constant String RootDir=Modelica.Utilities.Files.fullPathName(classDirectory() + "".."");
  package Icons 
    extends Package;
    partial class Package ""Icon for a package class""
      annotation(Icon(coordinateSystem(preserveAspectRatio=false, extent={{-100,-100},{100,100}}, grid={1,1}), graphics={Rectangle(extent={{-60,100},{100,-60}}, lineColor={0,0,255}, fillColor={255,255,255}, fillPattern=FillPattern.Solid),Polygon(points={{-100,60},{-60,100},{-60,60},{-100,60}}, lineColor={0,0,255}, fillColor={255,255,255}, fillPattern=FillPattern.Solid),Polygon(points={{60,-60},{100,-60},{60,-100},{60,-60}}, lineColor={0,0,255}, fillColor={255,255,255}, fillPattern=FillPattern.Solid),Rectangle(extent={{-100,60},{60,-100}}, lineColor={0,0,255}, fillColor={215,215,215}, fillPattern=FillPattern.Solid)}));
    end Package;

  end Icons;

end Utilities;
}}}

Name lookup of Icons.Package in Utilities fails. However it the declaration is changed to 

{{{
  extends Utilities.Icons.Package;
}}}

'''or''' if the declaration of the constant is removed or changed so it does not use classDirectory(), the lookup works.

The function classDirectory() is not standardized, but nevertheless name lookup of the icon should not be affected!"	defect	closed	critical		Backend		fixed		Jan Brugård
