<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:36:51 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[PLAS-15] lib support groovy/java files loading order may cause imports to fail</title>
                <link>https://jira.opendaylight.org/browse/PLAS-15</link>
                <project id="10600" key="PLAS">plastic</project>
                    <description>&lt;p&gt;Old issue.I thought it was fixed. Basically the lib/ folder files are loaded in reverse alphabetical order, not dependency order. So this may make imports of sibling classes fail if the filenames don&apos;t match the dependency order.&lt;/p&gt;

&lt;p&gt;The workaround is to make sure the file you are importing is later in sort order than your name. Note that groovy does not insist that class names correspond to file names.&lt;/p&gt;

&lt;p&gt;One way to fix this in code is to retry loading. If you have N source files in lib/ you can load them and track the ones that failed. then reload them and track again. if you get no progress, then you bail out of the loop. You would have to execute the loop at most N times.&lt;/p&gt;</description>
                <environment></environment>
        <key id="33108">PLAS-15</key>
            <summary>lib support groovy/java files loading order may cause imports to fail</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.opendaylight.org/images/icons/priorities/critical.svg">High</priority>
                        <status id="10002" iconUrl="https://jira.opendaylight.org/" description="">Done</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="allanclarke">Allan Clarke</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Jul 2020 22:21:06 +0000</created>
                <updated>Thu, 30 Jul 2020 15:06:41 +0000</updated>
                            <resolved>Thu, 30 Jul 2020 15:06:41 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="68501" author="allanclarke" created="Thu, 30 Jul 2020 15:05:50 +0000"  >
&lt;p&gt;There is no bug. The behavior is correct. A user was putting this into the lib folder:&lt;br/&gt;
lib/aaa.groovy&lt;br/&gt;
package lib&lt;br/&gt;
lib/bbb.groovy&lt;br/&gt;
package lib&lt;br/&gt;
import lib.aaa&lt;br/&gt;
class bbb ...&lt;br/&gt;
The root of the classpath entry STARTS AT THE LIB FOLDER not its parent.&lt;br/&gt;
So the correction is to either put those files into lib/lib/ or to remove the package statement.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03u3b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>