wordnik/swagger-core — Issue #6: Error while compiling swagger-core
Author: msahil
Created: 2011-11-19 02:33:26+00:00
State: open

while compiling swagger-core i get following errors:

*****************************************************************
Environment
OS: windows 7, 64 bit
JDK 1.7
Scala 2.9.1

*****************************************************************

fastcompile:
[mkdir] Created dir: D:\workspace\git.repositories\swagger-core\build\main
[mkdir] Created dir: D:\workspace\git.repositories\swagger-core\build\main\java
[scalac] Compiling 8 scala and 16 java source files to D:\workspace\git.repositories\swagger-core\build\main\java
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\ApiDocResource.scala:22: error: type mismatch
;
[scalac] found : com.wordnik.swagger.core.Api
[scalac] required: scala.annotation.Annotation
[scalac] @Api("/resources")
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\ApiDocResource.scala:27: error: type mismatch
;
[scalac] found : com.wordnik.swagger.core.Api
[scalac] required: scala.annotation.Annotation
[scalac] @Api("/resources")
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:46: error: type mismatch;

[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class Documentation (@BeanProperty var apiVersion: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:47: error: type mismatch;

[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var swaggerVersion: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:48: error: type mismatch;

[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var basePath: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:49: error: type mismatch;

[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var resourcePath: String){
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:114: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationEndPoint(@BeanProperty var path: String, @BeanProperty var description: String) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:114: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationEndPoint(@BeanProperty var path: String, @BeanProperty var description: String) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:146: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationOperation(@BeanProperty var httpMethod: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:147: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var summary: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:148: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var notes: String) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:149: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var deprecated: java.lang.Boolean = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:150: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var responseClass: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:151: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var nickname: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:242: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var name: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:243: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var description: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:244: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var notes: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:245: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var paramType: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:246: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var defaultValue: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:247: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var allowableValues: DocumentationAllowableValues,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:248: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var required: Boolean,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:249: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var allowMultiple: Boolean) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:250: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var paramAccess: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:251: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var internalDescription: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:252: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var wrapperName: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:253: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var dataType: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:294: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationAllowableListValues (@BeanProperty var values: java.util.List[String]) extends DocumentationAllowableValues
{
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:298: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var valueType: String = LIST_ALLOWABLE_VALUES
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:310: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationAllowableRangeValues (@BeanProperty var min: java.lang.Float,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:311: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var max: java.lang.Float) extends DocumentationAllowableValues {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:315: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var valueType: String = RANGE_ALLOWABLE_VALUES
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:329: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var valueType: String,
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:330: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var occurs: String) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:367: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationError(@BeanProperty var code: Int, @BeanProperty var reason: String) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:367: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] class DocumentationError(@BeanProperty var code: Int, @BeanProperty var reason: String) {
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:378: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var uniqueFieldName: String = _
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:467: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:472: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var name: String = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:474: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var id: String = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:476: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var properties: java.util.Map[String, DocumentationSchema] = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:479: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var allowableValues: DocumentationAllowableValues = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:482: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var description: String = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:485: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var notes: String = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:488: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var access: String = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:491: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var default: String = null //TODO this should be object
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:494: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var additionalProperties: DocumentationSchema = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:497: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var items: DocumentationSchema = null
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Documentation.scala:500: error: type mismatch
;
[scalac] found : scala.reflect.BeanProperty
[scalac] required: scala.annotation.Annotation
[scalac] @BeanProperty var uniqueItems: Boolean = false
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Help.scala:31: error: overloaded method const
ructor ApiOperation with alternatives:
[scalac] ()com.wordnik.swagger.core.ApiOperation
[scalac] (x$1: java.lang.String)com.wordnik.swagger.core.ApiOperation
[scalac] cannot be applied to (value: java.lang.String, responseClass: java.lang.String)
[scalac] @ApiOperation(value = "Returns information about API parameters",
[scalac] ^
[scalac] D:\workspace\git.repositories\swagger-core\src\main\scala\com\wordnik\swagger\core\Help.scala:59: error: overloaded method const
ructor ApiOperation with alternatives:
[scalac] ()com.wordnik.swagger.core.ApiOperation
[scalac] (x$1: java.lang.String)com.wordnik.swagger.core.ApiOperation
[scalac] cannot be applied to (value: java.lang.String, responseClass: java.lang.String, multiValueResponse: Boolean)
[scalac] @ApiOperation(value = "Returns list of all available api endpoints",
[scalac] ^
[scalac] 50 errors found

BUILD FAILED
D:\workspace\git.repositories\swagger-core\build.xml:75: Compile failed with 50 errors; see the compiler error output for details.

Total time: 3 minutes 28 seconds