Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-500

Hints with CDATA in title/message are not loaded / should be moved to body content

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Final
    • 2.0.0.Final
    • None
    • None
    • None

      https://github.com/windup/windup/blob/master/rules-java-ee/src/main/resources/legacy/org.jboss.windup.rules.apps.legacy.java.JDKConfig.windup.xml#L5785

              <rule>
                  <when>
                      <javaclass references="java.io.DataInputStream.readLine()" as="default">
                          <location>METHOD</location>
                      </javaclass>
                  </when>
                  <perform>
                      <iteration>
                          <hint message="&lt;![CDATA[&#10;            Deprecated By JDK 6. &#10;            This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:&#10;            ```java&#10;               DataInputStream d = new DataInputStream(in);&#10;            with:&#10;             BufferedReader d&#10;                  = new BufferedReader(new InputStreamReader(in));&#10;            ```&#10;            ]]&gt;" effort="0">
                          </hint>
                      </iteration>
                  </perform>
              </rule>
      

      Should become:

              <rule>
                  <when>
                      <javaclass references="java.io.DataInputStream.readLine()" as="default">
                          <location>METHOD</location>
                      </javaclass>
                  </when>
                  <perform>
                      <iteration>
                          <hint title="" effort="0">
                              <message><[CDATA[
                                    Deprecated By JDK 6.
                                    This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:
                                    ```java
                                    DataInputStream d = new DataInputStream(in);
                                    BufferedReader r = new BufferedReader(new InputStreamReader(in));
                                    ```
                               ]]></message>
                          </hint>
                      </iteration>
                  </perform>
              </rule>
      

              jsightle@redhat.com Jess Sightler
              lincolnthree Lincoln Baxter III (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: