Skip to content

Port sbt/sbt#2271 and sbt/sbt#2272#34

Merged
eed3si9n merged 3 commits intosbt:1.0from
Duhemm:port-2271-2272
Dec 7, 2015
Merged

Port sbt/sbt#2271 and sbt/sbt#2272#34
eed3si9n merged 3 commits intosbt:1.0from
Duhemm:port-2271-2272

Conversation

@Duhemm
Copy link
Contributor

@Duhemm Duhemm commented Nov 27, 2015

No description provided.

In some cases, the local java compiler may report compilation errors,
but succeed in compiling the source files (for instance, if there are
encoding problems in the source). However, the command line javac will
report a failed compilation on the same input.

To have the local java compiler behave like the forked java compiler, we
now report the compilation as failed if error messages have been
registered during compilation.

Fixes sbt/sbt#2228
These options can only be given to a forked Java compiler. If we run a
local java compiler, we filter these options out and emit a warning.

Fixes sbt/sbt#1968
Upon startup, javac may report errors because (for instance) because it
received incorrect flags. These errors were not correctly parsed by the
JavaErrorParser and were never reported to the user.

This commit fixes this problem by adding a new parsing rule in
JavaErrorParser: errors that start with the prefix "javac:" are now
correctly parsed and reported to the user.

Fixes sbt/sbt#2256
eed3si9n added a commit that referenced this pull request Dec 7, 2015
@eed3si9n eed3si9n merged commit fa0959b into sbt:1.0 Dec 7, 2015
@Duhemm Duhemm deleted the port-2271-2272 branch January 20, 2016 13:32
dwijnand pushed a commit to dwijnand/zinc that referenced this pull request Jun 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants