Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34343 > unrolled thread

Re: Funny error message

Started byv_borchert@despammed.com (Volker Borchert)
First post2016-05-18 19:44 +0000
Last post2016-05-18 19:44 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Funny error message v_borchert@despammed.com (Volker Borchert) - 2016-05-18 19:44 +0000

#34343 — Re: Funny error message

Fromv_borchert@despammed.com (Volker Borchert)
Date2016-05-18 19:44 +0000
SubjectRe: Funny error message
Message-ID<nhigmk$lfg$1@Gaia.teknon.de>
Stefan Ram wrote:
>   I am using javac with some additional tools, and I hope that
>   it was not one of those tools that has disorted the error
>   message, but here I see:
> 
> Main.java:40: error: bad operand type String for unary operator '+++'
>     java.lang.System.out.println( + "" );
>                                   ^
> 1 error
> 
> Main.java:40: error: bad operand type String for unary operator '---'
>     java.lang.System.out.println( - "" );
>                                   ^
> 1 error
> 
>   If you have the compiler sources: The error message seems to
>   be produced in javac\comp\Resolve.java, which might call
>   into javac\util\JCDiagnostic.java, but at this point, I
>   don't have the time to hunt down exactly where a '+' becomes
>   a '+++'.

First thing I'd do would be to pipe above output through
od -ax to uncover any nonprintable characters, in particular,
backspace.

-- 

"I'm a doctor, not a mechanic." Dr Leonard McCoy <mccoy@ncc1701.starfleet.fed>
"I'm a mechanic, not a doctor." Volker Borchert  <v_borchert@despammed.com>

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web