summaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-03-09 07:31:53 +0100
committerSven Gothel <[email protected]>2015-03-09 07:31:53 +0100
commit9d2bc5118f20f6f6defae075da17d34e1716d36d (patch)
treee8ad99895e0bfd332f7f9725d917406cbb2d21ad /src/java
parent5dd12c17bf5037c7ac6a2ac73caf4d61443c4749 (diff)
Bug 1134 - Refine err/log message of 'previous definition is here'
Diffstat (limited to 'src/java')
-rw-r--r--src/java/com/jogamp/gluegen/JavaEmitter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaEmitter.java b/src/java/com/jogamp/gluegen/JavaEmitter.java
index 52e8834..a829419 100644
--- a/src/java/com/jogamp/gluegen/JavaEmitter.java
+++ b/src/java/com/jogamp/gluegen/JavaEmitter.java
@@ -161,8 +161,8 @@ public class JavaEmitter implements GlueEmitter {
loc = null;
}
if( dupSym instanceof ASTLocusTagProvider ) {
- preLoc = String.format(", previously declared here: %s",
- ((ASTLocusTagProvider)dupSym).getASTLocusTag());
+ preLoc = String.format(",%n %s: previous definition is here",
+ ((ASTLocusTagProvider)dupSym).getASTLocusTag().toString(new StringBuilder(), "note", true));
} else {
preLoc = "";
}