<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:35 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>[MDSAL-348] enumerated type with enum value &apos;optional&apos; is not compilable</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-348</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;This snippet is not compilable:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
typedef tls-client-verify {
&#160;&#160;&#160; type enumeration {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; require {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; optional {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; none {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160; }
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;With error&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; some/path/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/opendaylight/jsonrpc/authsec/rev180607/TlsClientVerify.java:&lt;span class=&quot;error&quot;&gt;&amp;#91;74,24&amp;#93;&lt;/span&gt; cannot find symbol&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt;&#160;&#160; symbol:&#160;&#160; method ofNullable(org.opendaylight.yang.gen.v1.urn.opendaylight.jsonrpc.authsec.rev180607.TlsClientVerify)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt;&#160;&#160; location: variable Optional of type org.opendaylight.yang.gen.v1.urn.opendaylight.jsonrpc.authsec.rev180607.TlsClientVerify&lt;/p&gt;



&lt;p&gt;Because of generated code:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Required(0, &lt;span class=&quot;code-quote&quot;&gt;&quot;required&quot;&lt;/span&gt;),
Optional(1, &lt;span class=&quot;code-quote&quot;&gt;&quot;optional&quot;&lt;/span&gt;),
None(2, &lt;span class=&quot;code-quote&quot;&gt;&quot;none&quot;&lt;/span&gt;)
;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; Optional&amp;lt;TlsClientVerify&amp;gt; forName(&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; name) {
&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Optional.ofNullable(NAME_MAP.get(Objects.requireNonNull(name)));
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Optional is referring to both enum value and java.util.Optional class.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>&lt;p&gt;Source are generated using yang-maven-plugin:2.0.5:generate-sources MOJO using default configuration inherited from &lt;/p&gt;

&lt;p&gt;&#160;&#160;&#160; &amp;lt;parent&amp;gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &amp;lt;groupId&amp;gt;org.opendaylight.mdsal&amp;lt;/groupId&amp;gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &amp;lt;artifactId&amp;gt;binding-parent&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &amp;lt;version&amp;gt;0.13.0-SNAPSHOT&amp;lt;/version&amp;gt;&lt;br/&gt;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &amp;lt;relativePath /&amp;gt;&lt;br/&gt;
&#160;&#160;&#160; &amp;lt;/parent&amp;gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</environment>
        <key id="30105">MDSAL-348</key>
            <summary>enumerated type with enum value &apos;optional&apos; is not compilable</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="rkosegi">Richard Kosegi</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Jun 2018 10:07:16 +0000</created>
                <updated>Fri, 8 Jun 2018 22:07:35 +0000</updated>
                            <resolved>Fri, 8 Jun 2018 22:07:35 +0000</resolved>
                                    <version>Fluorine</version>
                                    <fixVersion>Fluorine</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="63340" author="rovarga" created="Thu, 7 Jun 2018 10:12:11 +0000"  >&lt;p&gt;Missing version...&lt;/p&gt;</comment>
                            <comment id="63341" author="rkosegi" created="Thu, 7 Jun 2018 10:16:25 +0000"  >&lt;p&gt;My bad, updated environment info&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|i03fev:</customfieldvalue>

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