Comments (6)
Original comment posted by [email protected] on 2013-02-11 at 07:45 PM
(No comment entered for this change.)
Labels: Type-Enhancement, Priority-Low
from error-prone.
Original comment posted by vmassol on 2013-09-17 at 02:48 PM
I use Apple's JDK and was hit by this issue which prevents the XWiki project (http://xwiki.org) to use the error-prone compiler ATM (we cannot have our build not working on the Mac platform when using the main/official JDK).
from error-prone.
Original comment posted by [email protected] on 2013-09-17 at 03:31 PM
Do your users download xwiki and then compile it locally on their machines, where they may be using an Apple JDK? Or do you compile it yourself and distribute a binary, and you'd just like to be able to compile without having to download a JDK?
from error-prone.
Original comment posted by jkuhnert on 2013-11-22 at 12:22 AM
=(
from error-prone.
Original comment posted by ian.springer on 2013-11-25 at 01:51 AM
If anyone would like to add errorprone to their Maven project but prevent it from breaking the build when when being built with the Apple JDK, you can add a profile like the following to your pom:
<profile>
<id>oracle-jdk</id>
<activation>
<property>
<name>java.vendor</name>
<value>Oracle Corporation</value>
</property>
</activation>
<build>
<plugins>
<!-- TODO: Move this to default build once https://github.com/google/error-prone/issues/16 has been fixed. -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerId>javac-with-errorprone</compilerId>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-javac-errorprone</artifactId>
<version>2.3</version>
</dependency>
<dependency>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>1.0.8</version>
<exclusions>
<exclusion>
<groupId>openjdk</groupId>
<artifactId>tools</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
from error-prone.
We require JDK7 now, and Apple's JDK is stuck at JDK6. This isn't going to happen.
from error-prone.
Related Issues (20)
- Add `BugChecker.SwitchExpressionTreeMatcher` to support checking of `switch` expressions HOT 5
- NoSuchMethodError when building under JDK21 HOT 1
- ImmutableEnumChecker in Enum where an attribute is a Record type which is immutatble HOT 1
- java: An unhandled exception was thrown by the Error Prone static analysis plugin. HOT 1
- Index out of bound exception. HOT 1
- DeadException rule throws java.lang.NullPointerException
- error: [DoNotCall] Calling run on Thread runs work on this thread
- Consider using an embedded standalone javac compiler instead of relying on JVM internals
- False positive: FieldCanBeLocal reported when overriding default record constructor HOT 1
- How to avoid "overlaps with existing replacements"
- Patch should identify itself
- Allow DoNotCall annotation on constructors HOT 1
- False positives for OperatorPrecedence bug pattern HOT 3
- IllegalArgumentException with MustBeClosedChecker HOT 1
- NullPointerException in NestedInstanceOfConditions HOT 1
- NullPointerException in InstanceOfAndCastMatchWrongType
- All checks should treat `String#formatted` the same as `String#format` HOT 2
- An unhandled exception was thrown by the Error Prone static analysis plugin.
- Unhandled Exception in InconsistentCapitalization
- Crash in UnnecessaryStringBuilder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from error-prone.