protocol buffers - Java code has many errors after the protoc compiled -


why class generated protoc generates following compile errors?

description resource path location type cannot override final method generatedmessage addressbookprotos.java /monitor/src/main/resources/com/example/tutorial line 102 java problem cannot override final method generatedmessage addressbookprotos.java /monitor/src/main/resources/com/example/tutorial line 339 java problem cannot override final method generatedmessage addressbookprotos.java 

and pom.xml::

<dependencies>         <dependency>             <groupid>junit</groupid>             <artifactid>junit</artifactid>             <version>3.8.1</version>             <scope>test</scope>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-api</artifactid>             <version>1.7.6</version>         </dependency>         <dependency>             <groupid>org.slf4j</groupid>             <artifactid>slf4j-simple</artifactid>             <version>1.7.6</version>         </dependency>         <dependency>             <groupid>org.codehaus.jackson</groupid>             <artifactid>jackson-mapper-asl</artifactid>             <version>1.9.13</version>         </dependency>         <dependency>             <groupid>com.google.protobuf</groupid>             <artifactid>protobuf-java</artifactid>             <version>2.4.1</version>         </dependency>     </dependencies> 

i don't think pom file relevant here. error messages quite clear: cannot override final method. word final used methods avoid overriding, removing final should help, otherwise include code.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -