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


Groups > comp.lang.java.programmer > #34197

error: unclosed character literal

From Popping mad <rainbow@colition.gov>
Newsgroups comp.lang.java.programmer
Subject error: unclosed character literal
Date 2016-04-26 06:32 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <nfn223$2q2$2@reader1.panix.com> (permalink)

Show all headers | View raw


TypeCheckingVisitor.java:61: error: unclosed character literal
                 if(op == '>' || op == '<' || op == '<=' || op == '>=' ){


The editor also indicates a parsing problem in the Java but I am at a loss.

'<' seems to work


This is the code snippet

//Comparison Operators
      ¦if(op == '>' || op == '<' || op == '<=' || op == '>=' ){
         ¦if( (leftType == Type.INT && rightType == Type.INT) || (leftType== Type.FLOAT || rightType== Type.FLOAT)|| (leftType == Type.INT && rightType == Type.FLOAT)|| (leftType == Type.FLOAT && rightType == Type.INT ) ){
            ¦return trace(ctx, Type.BOOL);
         ¦}
   ¦  ¦  ¦return typeMismatch(ctx, leftType, rightType);

      ¦}  

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

error: unclosed character literal Popping mad <rainbow@colition.gov> - 2016-04-26 06:32 +0000
  Re: error: unclosed character literal Andreas Leitgeb <avl@logic.at> - 2016-04-26 06:57 +0000
    Re: error: unclosed character literal Lew <lewbloch@gmail.com> - 2016-04-26 13:51 -0700
      Re: error: unclosed character literal Andreas Leitgeb <avl@logic.at> - 2016-04-26 22:01 +0000
      Re: error: unclosed character literal Andreas Leitgeb <avl@logic.at> - 2016-04-26 22:04 +0000
        Re: error: unclosed character literal Arne Vajhøj <arne@vajhoej.dk> - 2016-04-26 19:34 -0400
          Re: error: unclosed character literal Roedy Green <see_website@mindprod.com.invalid> - 2016-05-25 08:29 -0700
            Re: error: unclosed character literal Lew <lewbloch@gmail.com> - 2016-05-25 14:30 -0700
      Re: error: unclosed character literal Arne Vajhøj <arne@vajhoej.dk> - 2016-04-26 19:38 -0400
        Re: error: unclosed character literal Lew <lewbloch@gmail.com> - 2016-04-28 12:56 -0700
  Re: error: unclosed character literal Roedy Green <inquiry@mindprod.com> - 2016-05-30 21:50 -0700

csiph-web