Process @SysCallTemplate with Java 6 Annotations API instead of APT

Description

The build process currently uses apt, the annotation processing tool, to process @SysCallTemplate annotations. apt is deprecated in Java 7. It is replaced
by javac and the Java 6 APIs javax.annotation.prcessing and javax.lang.model .

This was discussed on the mailing list and it was decided that annotations should be processed via the Java 6 API. Consequently, the Jikes RVM will require a Java 6 JDK instead of a Java 5 JDK to build.

Environment

None

Activity

Show:
Erik Brangs
October 13, 2011, 10:22 AM

Here is a first attempt at a patch. Constructive critism is welcome.

Erik Brangs
November 12, 2011, 9:44 AM

I've also got some black-box-tests for the new annotation processing. I've not provided them because I'm not sure how they would fit in the existing test infrastructure:

  • the tests validate only the output of the annotation processing

  • the tests use JUnit but they are not unit tests

  • the tests do not need a Jikes RVM configuration

They're also badly written. I'd be willing to rework them to fit the test infrastructure if there's a consensus on how they should be integrated.

DaveG
December 20, 2011, 4:23 PM

committed patch in 10402-10404.

Added note in NEWS; updated Userguide wiki page to list Java 6 instead of Java 5 as needed to build Jikes RVM.

Assignee

DaveG

Reporter

Erik Brangs

Labels

None

Components

Fix versions

Priority

Medium
Configure