nhatminhle / cofoja

Contracts for Java
GNU Lesser General Public License v3.0
151 stars 18 forks source link

Unable to compile cofoja with IntelliJ 13 #41

Closed nhatminhle closed 9 years ago

nhatminhle commented 9 years ago

From tom.mago...@gmail.com on January 23, 2014 00:35:11

What steps will reproduce the problem? 1. Install IntelliJ 13 community edition

  1. Annotate a class or method with a contract
  2. Build project What is the expected output? What do you see instead? The build should work, instead lots of compile errors are output to the console. What version of the product are you using? On what operating system? Tested with cofoja r150 , Java 7u45, OSX 10.8.4 Please provide any additional information below. Submitted the following bug to jetbrains, which contains much more information: http://youtrack.jetbrains.com/issue/IDEA-117888 The answer received was:

The [cofoja annotation] processor does not seem to use the "legal" annotation processing API in order to obtain classpath, sourcepath etc. There are absolutely no guarantees that Options will contain all needed information and using it is, as stated in the javadoc:

"This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice."

Original issue: http://code.google.com/p/cofoja/issues/detail?id=41

nhatminhle commented 9 years ago

From nhat.min...@gmail.com on January 25, 2014 16:19:48

Well yes these APIs are not public/supported, but I don't know any better way to get that info. You can't just use the runtime classpath because it's most likely different from the compilation classpath, so the only option is to specify it manually. It's actually written in the Cofoja doc that it's a known issue.

nhatminhle commented 9 years ago

From nhat.min...@gmail.com on August 16, 2014 03:29:31

Status: WontFix