Opened 19 years ago
Last modified 19 years ago
#59 closed defect (fixed)
loadFileInteractiveQualified loads too much
Reported by: | x05andre | Owned by: | x05andre |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | x05andre, Adrian Pop |
Description
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Fixed by Lucian.
loadFileInteractiveQualified called ClassLoader.load_class
when it should just parse the file.
Note:
See TracTickets
for help on using tickets.
When loadFileInteractiveQualified() is performed on a package.mo file, it dives
into the subdirectories recursively and loads those as well. This leads to
issues when trying to manually load the package.mo's in the subdirectories.
Below is an interaction with omc, where the top package of the Modelica library
is loaded. As you can tell from the getElementsInfo(), not only the Modelica
package has been loaded.
omc revision 2140.
loadFileInteractiveQualified("/home/x05andre/ex/ModelicaLibrary/Modelica/package.mo")
{ { elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/package.mo", elementreadonly="writable",
elementStartLine=2, elementStartColumn=1, elementEndLine=124,
elementEndColumn=4, final=false, replaceable=false, inout="none",
elementtype=extends, path=Icons.Library },
{ elementvisibility=public, elementtype=annotation },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/package.mo", elementreadonly="writable",
elementStartLine=127, elementStartColumn=1, elementEndLine=1028,
elementEndColumn=15, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=UsersGuide, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Media/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=5823,
elementEndColumn=10, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Media, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Utilities/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=301,
elementEndColumn=14, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Utilities, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Mechanics/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=65,
elementEndColumn=14, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Mechanics, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Electrical/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=38,
elementEndColumn=15, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Electrical, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Math/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=3905,
elementEndColumn=9, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Math, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Blocks/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=426,
elementEndColumn=11, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Blocks, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Thermal/package.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=6, elementEndColumn=12,
final=false, replaceable=false, inout="none", elementtype=classdef,
classname=Thermal, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Icons.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=450,
elementEndColumn=10, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Icons, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/Constants.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=135,
elementEndColumn=14, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=Constants, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/SIunits.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=1538,
elementEndColumn=12, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=SIunits, classrestriction=PACKAGE },
{ elementvisibility=public, elementfile="/home/x05andre/ex/Modelica
Library/Modelica/../Modelica/StateGraph.mo", elementreadonly="writable",
elementStartLine=1, elementStartColumn=1, elementEndLine=2893,
elementEndColumn=15, final=false, replaceable=false, inout="none",
elementtype=classdef, classname=StateGraph, classrestriction=PACKAGE }