Skip to content

Defining 'Source Compilation' error for user clarification  #112

@ReeceNana

Description

@ReeceNana

In start directory, after replacing the InventoryResource class.:

src/main/java/io/openliberty/guides/microprofile/InventoryResource.java

You will see a source compilation error in your terminal:

[INFO] [AUDIT   ] CWWKZ0003I: The application guide-rest-hateoas updated in 0.887 seconds.
/home/project/guide-rest-hateoas/start/src/main/java/io/openliberty/guides/microprofile/InventoryResource.java:28: error: cannot find symbol
        return manager.getSystems(uriInfo.getAbsolutePath().toString());
                      ^
  symbol:   method getSystems(String)
  location: variable manager of type InventoryManager
1 error
[INFO] Source compilation had errors.

This is as expected, however, the information under states:

The contents of your inventory are now under the asterisk (*) wildcard and reside at the http://localhost:9080/inventory/hosts/* URL.

This may confuse users in believing that they can access the URL, which at this point is not necessary or have reason to believe there will be errors when accessing the URL due to the source compilation error above.

This can be resolved by notifying the user, that 'source compilation' errors are expected as each file is created, but is resolved thereafter. It may not be necessary/priority but after investigation it may be an issue for some.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions