bind: remove extra "package" from error string

Fixes golang/go#13064

Change-Id: I2cde12a831607cd37d9760d92c0ef0f53fd6dd8b
Reviewed-on: https://go-review.googlesource.com/16351
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw
2015-11-13 12:13:51 +00:00
parent 3b97f7024e
commit e2a9091da2
2 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -551,7 +551,7 @@ func (g *javaGen) genRead(resName, seqName string, T types.Type) {
case *types.Named:
o := T.Obj()
if o.Pkg() != g.pkg {
g.errorf("type %s not defined in package %s", T, g.pkg)
g.errorf("type %s not defined in %s", T, g.pkg)
return
}
g.Printf("%s = new %s(%s.readRef());\n", resName, o.Name(), seqName)
@@ -563,7 +563,7 @@ func (g *javaGen) genRead(resName, seqName string, T types.Type) {
case *types.Interface, *types.Pointer:
o := T.Obj()
if o.Pkg() != g.pkg {
g.errorf("type %s not defined in package %s", T, g.pkg)
g.errorf("type %s not defined in %s", T, g.pkg)
return
}
g.Printf("%s = new %s.Proxy(%s.readRef());\n", resName, o.Name(), seqName)