Fix erroneous boxing of primitive return values by $entry()

Bug: issue 8548
Change-Id: I99938731ad8db81737a45a1d641bf3bd12ea4e68
(cherry picked from commit 2b54a63ccc1d7f68229fb04ae47abc21bfa205d1)
Strengthen SuperDevMode test in selection script

Selection script used sessionStorage without checking first whether it's
supported and enabled (e.g. IE8 doesn't support it with local files).

Bug: issue 8587
Change-Id: I5d5b9312d9a8c5db87924ea943e2230cda1e5fac
(cherry picked from commit e1e8e20e056c186d73e492473c04043d76912af1)
NPE in UnusedImportsRemover when processing files without definitions.

NPE when a source files contains a package line and at least one
import line but not class nor interface definitions (i.e. empty).

Bug: issue 8566.
(cherry picked from commit 04bc38b5070accc4c86504fc390484c21ded2c33)

Change-Id: Id917eb98e44c28a93fd2da69e3a1d9a23993975b
Windows compatibility for SuperDevMode

java.util.File normalizes separators for the platform, so comparisons
with paths with forward-slashes will fail on Windows.
Splitting the filename and directory path is now done using string
manipulation rather than through File.

Bug: issue 8618
Change-Id: Ib10d352dac04ce2b359e98ffa7481b4b6608aab3
(cherry picked from commit 19c8cdb8e0e46dd8c959f16be5f2493a0a2f9130)
Default softPermutationId to 0.

This fixes soft rebinding for permutation 0, where previously
module.__softPermutationId would become undefined (because permutation
0's strong name does not have a :0 suffix).

This resulted in the runtime "switch (permutationId)" logic always
picking the default binding (which may/may not be the one for
permutation 0).

Bug: issue 8575
Change-Id: I19a6f9650f5414d98905c0e45cd3a78628b05dd2
(cherry picked from commit 4ed8dc9750b1b241bb41fcf0974ab3a35aa41168)
Fix inconsistency in MethodInliner.

MethodInliner would create an instance of JNonNullType whose
underlying type was JNullType. Leaving the AST in an illegal
state where further passes down the road could be making wrong
decisions.

Change-Id: I2bbca4692b6eadb609a22b1016a834fd94bc7840
Update Guava to 16.0.1 for CDI compatibility

Bug: issue 8590
Change-Id: Ic12978ffdfe549d2100c0c6948b1864fb051200b
(cherry picked from commit 062daa89de0e454576818c667d2c30ecc7e3f04e)
Don't fail compilation if we can't emit a private artifact

Only fail for "public" and "deploy" artifacts (StandardLinkerContext's
produceOutput is only called for those 3 visibilities, "source"
artifacts and emitted by the SourceSaver).

This change reverts to the GWT 2.5.1 behavior, for private artifacts
only. The behavior was changed in 73862cc8ceb81c29a669d573441e231e4b272842

Bug: issue 8623
Change-Id: I7a87c13d33c942f9cbcd3c27ec90c9ea9c19c70d
(cherry picked from commit 3f48e50a22861ff2c32d5e44d65b7b2ed12d084a)
Fixes RichTextArea.Formatter.insertHTML for IE permutation

The regression was introduced in
I6ed65ede38b06ce42f51be9613a129a938f0bc048

Bug: issue 4265
Change-Id: I33c1a73c396e75cc91b51d762f523b618ae057ab
(cherry picked from commit 1a6e23cf69c3cd17b74ffa3aff77565f4bb63ad2)
Fix UnusedImportRemover to traverse package annotations

Previously we just noted the type of the annotation, but we then
considered types from annotation properties as unused and removed the
imports, resulting in errors downstream.

Bug: issue 8425
Change-Id: Idfa9430fd60cc7dea2069a8d860d6de078b6ca16
(cherry picked from commit a1386874fea70e012a3817c8b36d700366513402)
Deprecates HttpThrowableReporter in favor of JsonLogRecordClientUtil.

This helps us to drop XMLHttpRequest dep from core which makes it
easier to avoid circular deps involving core.

Change-Id: I21ef3393310c19112aeb904f4b970bc89ebbacaa
(cherry picked from commit d94b402596302381061b72698bc706257307a4e7)
Restore support for derived DataResource in @url CSS extensions

GWT supports references to Data and Image resource using the @url
CSS extension. In 2.6.0, a test was introduced to check that the
type of the method referenced in the @url extension is indeed of
type DataResource or ImageResource. This test is too strict though
and does not allow DataResource and ImageResource subclasses, which
were allowed before 2.6.0. This patch makes the test more lenient
to accept derived DataResource and ImageResource.

Bug: issue 8564
Change-Id: If81e5f1250e28a5a3150b26d3ffa290d780a26a0
Fix non determinism in code generation.

GenerateJavaScriptAst.FixNameClashesVisitor fixes name clashes in
a non deterministic order due to iteration over a HashMultimap.

This fix makes the iteration order deterministic by using a
LinkHashMultimap instead.

Change-Id: Iaa878666f4fbae7cf235d3d53f223d8a08af6e4f
(cherry picked from commit d94b402596302381061b72698bc706257307a4e7)
Added suppress warnings for DOMImplStandard#dispatchEvent*

Change-Id: I8d817e79a4fd66c45b48b1e63cbe3955050becaf
(cherry picked from commit 78dd42b6ed094f51c592010d22412d6860d1e909)
No longer reference SVN in modules generated by WebAppCreator

Bug: issue 8599
Change-Id: Iee3d7d0b077de82918ebae20f7003ecaee333e70
(cherry picked from commit 4792be87df9c864f8223f2ad97895209665dd033)
Workaround for webapp classloader regression in DevMode

Allow org.eclipse.jetty classes and friends (Jasper, Xerces) to be
loaded from the classpath without adding the containing JAR
(probably gwt-dev) to the webapp classloader.
Jasper and Xerces were previously added as system classes (from
Jetty's terminology), taking precedence over JARs from WEB-INF/lib;
this change make them "normal" classes with a special classloader
fallback behavior (fallback to the system classloader, without adding
the containing JAR to the webapp classloader).

Also fixes resource loading when trying to load server resources (from
Jetty's terminology) by not allowing them to be loaded from the
classpath.

Bug: issue 8526, issue 8585
(cherry picked from commit abb1c56838dc71d7b3c30ded6a687aeffae8d848)
Change-Id: I77611c40bd16ecb39d5c288b8e82647f65f47c86
Fix all doctypes in samples

This ensures standards mode rather than quirks mode, which is required
for IE9.

Bug: issue 8699
Change-Id: If9dd5f4afc66046491f8ca97f6f2efca32f0ce34
Updated maven examples to use GWT 2.6.1

Change-Id: Iad496282de396f3d12a64c3a0abf08d49033e592
(cherry picked from commit 2611f4e4bd981753ae703ceece904589c11c7602)
Set no-cache headers for nearly all Super Dev Mode pages

This is necessary for IE9 and IE10 (at least).

Change-Id: Ib8ca44580349666079b1c461c55a7c1bd331b8ed
Added @charset rule skipping

bug: issue 6736
Change-Id: I28e867b39cb1755e9bd132f2d4ddd960c21ee076