Skip to content

Commit

Permalink
* Add missing space for const types when normalizing template argu…
Browse files Browse the repository at this point in the history
…ments in `Parser` (issue bytedeco/javacpp-presets#165)
  • Loading branch information
saudet committed Feb 27, 2016
1 parent 4083b8a commit 84babfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Add missing space for `const` types when normalizing template arguments in `Parser` ([issue bytedeco/javacpp-presets#165](https://github.com/bytedeco/javacpp-presets/issues/165))
* Make `Builder` fail on `ClassNotFoundException` or `NoClassDefFoundError` instead of logging warnings
* Allow `Builder` to generate native libraries with empty `@Platform` annotation even without user defined `native` methods
* Enhance `Parser` to support a bit better `&&` tokens and C++11 rvalue references ([issue bytedeco/javacpp-presets#160](https://github.com/bytedeco/javacpp-presets/issues/160))
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/org/bytedeco/javacpp/tools/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ Type[] templateArguments(Context context) throws ParserException {
count--;
}
type.cppName += token;
if (token.match(Token.CONST)) {
type.cppName += " ";
}
}
if (type.cppName.endsWith("*")) {
type.javaName = "PointerPointer";
Expand Down

0 comments on commit 84babfb

Please sign in to comment.