Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-704

org.jboss.forge.parser.java.impl.FieldImpl<O> do not handle byte[] class

    Details

      Description

      org.jboss.forge.parser.java.impl.FieldImpl<O> can not handle byte[] class.

      When trying to generate a byte[] field org.jboss.forge.parser.java.impl.FieldImpl.setType(Class<?>) fails, because at the end it depends on Class.getName, which does not start with "java.lang" (checked in org.jboss.forge.parser.java.impl.AbstractJavaSource<O>).
      Forge tries to generate an import for the name byte[], which fails in org.jboss.forge.parser.java.impl.AbstractJavaSource.addImport(String)

      I discovered this while using the hibersap-plugin.

      Best regards

      Max

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                gastaldi George Gastaldi
                Reporter:
                mxsb Max Schwaab
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: