-
-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Java Text Blocks #2837
Comments
This makes sense @arnaldop.
I think that this would do it indeed. Would you like to create a PR for this improvement? |
@filiphr, thanks for following up. |
Sorry, I didn't realize that you wanted to do it. I was going through the issues for 1.6 and wanted to do some of the easier ones. If you are interested in contributing perhaps you can look at some of the other "good first issue" issues. e.g. #2730. Or if you have some other ideas feel free to offer them. You could also contribute to the IntelliJ plugin by working on mapstruct/mapstruct-idea#98.
We don't really have a fixed release schedule. Usually something like this would go into the next release, e.g. 1.6. Considering that we just released 1.5 it might take a while. We will discuss it in the team to see if we can do another release (1.5.2) that would include this. |
We are planning to do a quick 1.6 beta release, so we will include this in that one. |
The following mapping does not work:
The compile-time error is
java: Value for expression must be given in the form "java(<EXPRESSION>)".
.It's possible that the problem is at
org.mapstruct.ap.internal.model.source.MappingOptions
line 40:private static final Pattern JAVA_EXPRESSION = Pattern.compile( "^java\\((.*)\\)$" );
In theory, this block of code should work:
Perhaps adding
Pattern.MULTILINE
would work?The text was updated successfully, but these errors were encountered: