Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-2

Adding Multibyte class name Java file fails with "The public type <class name> must be defined in its own file" in business-central

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.4.0
    • 6.2.0
    • Business Central
    • None

    Description

      Description of problem:

      If you add a multibyte class name Java file (e.g. あいうえお.java) to a project using "git push", the project fails to build. The error messages are displayed in "Messages" pane.

      ======
      The public type あいうえお must be defined in its own file | あいうえお.java
      The type あいうえお collides with a package | あいうえお.java
      ======

      No error is logged in server.log.

      Note: You cannot create a multibyte class name Java file by Data Objects Editor. This issue can be reproduced by pushing the local Java file via git.

      Steps to Reproduce:

      1. Login to business-central
      2. Clone a repository (e.g. 'repository1') to local filesystem by ssh git clone (e.g. git clone ssh://brmsAdmin@localhost:8001/repository1)
      3. Add a multibyte class name Java file (e.g. あいうえお.java attached to this BZ for your convenience) to local filesystem (e.g. /repository1/project1/src/main/java/org/kie/example/project1/あいうえお.java)
      4. git add, commit and push
      5. Confirm that "あいうえお" exists under Project Explorer "DATA OBJECTS"
      5. "Build&Deploy" in business-central

      Actual results:

      Build failed with the messages
      =====
      The public type あいうえお must be defined in its own file | あいうえお.java
      The type あいうえお collides with a package | あいうえお.java
      =====

      Expected results:

      Build successful and we can use the class for rules.

      Attachments

        Issue Links

          Activity

            People

              karreiro_ Guilherme Gomes (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Archiver:
              rhn-support-ceverson Clark Everson
              Jiří Locker Jiří Locker
              Jiří Locker Jiří Locker

              Dates

                Created:
                Updated:
                Resolved:
                Archived:

                PagerDuty