Uploaded image for project: 'PUBLIC - Liferay BLADE'
  1. PUBLIC - Liferay BLADE
  2. BLADE-645

Service Builder adds exceptions to *LocalServiceBaseImpl methods but fails to include imports when using Blade

    Details

    • Type: Bug
    • Status: Verified
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.3
    • Fix Version/s: None
    • Component/s: blade-cli
    • Labels:
      None
    • Fix Priority:
      4

      Description

      Steps to Reproduce:
      blade version: 4.0.7.202103092053

      • blade init -v 7.3 test-service-builder
      • cd test-service-builder
      • blade create -t service-builder test-service
      • blade gw buildService
      • Add to FooLocalServiceImpl

       

      public Foo getFoo(long fooId) throws NoSuchFooException { 
          return fooPersistence.findByPrimaryKey(fooId); 
      }
      

       

      • blade gw buildService
      • blade gw build

      Expected Result:

      • The modules build without exceptions.

      Actual Result:

      • Build fails with "error: cannot find symbol NoSuchFooException"

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            evan.thibodeau Evan Thibodeau
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package