This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 250192 - Compile dont fail on files with error if compile-on-save is enabled
Summary: Compile dont fail on files with error if compile-on-save is enabled
Status: NEW
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-03 20:35 UTC by akobberup
Modified: 2016-08-25 22:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description akobberup 2015-02-03 20:35:23 UTC
If compile-on-save is enabled in a maven project, the project can still be build with no compile errors using the "build" option in the contextual menu /f11 (maven install).

I created a simple test - a new maven application project with one java class in it. Compile-on-save is enabled by default.

I compile the project now, with no problems.
Now i make an error in the file - for example writing this:

public void test(); //method declaration with missing method body

and hit f11(build), the problem is that I don't get any error.

Not until i either do a clean and build, or deactivates compile-on-save and then compiles i will get the error i should get.

This means that i must rely on the projects tree to find any classes with errors in them (if i for example add a method to an interface and dont get the method implemented in all impl-classes), where i use to be able to just compile and see any errors.