<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:10:01 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-529] Java codegen fails to escape eligible Unicode escapes</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-529</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3&lt;/a&gt; specifies processing of Unicode escapes which happens before the source is being parsed. Most notably it contains the following:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;If an eligible \ is followed by u, or more than one u, and the last u is not followed by four hexadecimal digits, then a compile-time error occurs.
            &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;This is very easily triggered by a model like:&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;module def {
  namespace def;
  prefix def;

  leaf def {
    type string;
    default &quot;\\u@\\h\\M% &quot;;
  }
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;where the snippet emitted for javadoc purposes will end up containing what looks like an eligible escape:&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;
/**
 *
 * &amp;lt;p&amp;gt;
 * This &lt;span class=&quot;code-keyword&quot;&gt;class &lt;/span&gt;represents the following YANG schema fragment defined in module &amp;lt;b&amp;gt;def&amp;lt;/b&amp;gt;
 * &amp;lt;pre&amp;gt;
 * module def {
 *   namespace def;
 *   prefix def;
 *   leaf def {
 *     type string;
 *     &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;\u@\h\M% &quot;&lt;/span&gt;;
 *   }
 * }
 * &amp;lt;/pre&amp;gt;
 *
 */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="32460">MDSAL-529</key>
            <summary>Java codegen fails to escape eligible Unicode escapes</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="rovarga">Robert Varga</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Mar 2020 17:29:21 +0000</created>
                <updated>Fri, 6 Mar 2020 20:59:57 +0000</updated>
                            <resolved>Fri, 6 Mar 2020 20:59:57 +0000</resolved>
                                                    <fixVersion>6.0.0</fixVersion>
                    <fixVersion>5.0.10</fixVersion>
                    <fixVersion>4.0.12</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="67943" author="rovarga" created="Fri, 6 Mar 2020 17:31:56 +0000"  >&lt;p&gt;This may actually be a problem in YANG snippet generator, as that would be the entity responsible for correctly escaping the raw string (as it is using double quotes). A valid solution, though, would end up using single quotes, in which case there would be no need to escape &#8211; and the problem is back in our court. As it is the java-api-generator which knows the result is supposed to be a Java file, it needs to deal with whatever comes at it in a way compatible with JLS.&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|i03rcn:</customfieldvalue>

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