Closed agavrilov closed 10 years ago
i assume this would mean we also need to update util/closureCompiler/compiler.jar. is that right?
If we happen to do something like that I would like the code to still be compatible with older Closure compiler versions as well which might not be the case of the proposed PR (for those who can't easily upgrade closure compiler for legal reasons).
The Pull Request is compatible with the version of Closure Compiler distributed with Dojo 1.9.3
The Pull Request is compatible with the version of Closure Compiler distributed with Dojo 1.9.3
Thanks is that true with the version shipped in 1.8 as well?
Yes, changes in PR are compatible with Dojo 1.8.6 as well
Cool, then I have no objection but I will let others with probably more experience related to this decides what to do.
Seems like a really trivial fix.
Confirmed with the commit at https://github.com/google/closure-compiler/commit/6b49cfd9022fe111bdad745c78ea877fbc2f7ba3#diff-04fe91ccdc40db0596f4449c7eb63406 that they first copied this file, and then later removed it.
The "new" file was copied in 2009, and is there in our old version of Closure as well.
We should accept and merge this pull request.
Sounds good to me.
Is there a reason to not update Closure Compiler and Rhino to latest versions at the same time? The latest CC requires Java 7, but…we’re up to Java 8 now, so I don’t see this as being an issue. Builds still complete successfully with the latest.
The main issue from this PR was fixed in 5560ac3ef5eeed782118dec180be444d8695645e; there is more than one place where this had to be changed. I’ll leave it open momentarily for people to respond to the question about CC/Rhino.
I would suggest we update to newer versions, as they both presumably fix and improve things. I'm sure that anything to help make a build run faster would be greatly appreciated by the community.
Turns out that ShrinkSafe relies on some parser API that changed in some way in the newer Rhino and so crashes. I’m not going to bother to try to fix it. We could either remove ShrinkSafe completely, or deal with the fact that things are never going to be upgradeable for as long as it continues to come with.
Fix #17809: Dojo build doesn't work with the latest Closure Compiler
Use com.google.javascript.jscomp.SourceFile instead of deprecated (and deleted) com.google.javascript.jscomp.JSSourceFile