GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Program incorrectly rejected · Issue #536 · liquid-java/liquidjava

Program incorrectly rejected #536

New issue
Copy link
New issue
Copy link
Open
Open
Program incorrectly rejected#536
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@Cz-zbj
Cz-zbj
opened on Nov 12, 2026
Issue body actions

Description
This program should be accepted, the counter example is wrong:

-1/2 * -2 really is ==1.

Minimal reproducer

public class MethodRefinementExample {

    @Refinement("_ == a / b")
    public static int divide(int a, @Refinement("b != 0") int b) {
        return a / b;
    }

    @Refinement("_ == a")
    public static int what(int a, @Refinement("b != 0") int b, @Refinement("c == a / b") int c) {
        return c*b;
    }

    public static void main(String[] args) {
        int result = divide(6, 2);
        int result2 = what(6, 2, 3);
        System.out.println(result);
    }
}

Environment

  • LiquidJava version / commit: 0.07
  • Java version (java -version):
openjdk 21.0.13.0.3 2026-10-24
OpenJDK Runtime Environment (build 21.0.13.0.3+1-1-24.04.1-Ubuntu)
OpenJDK 64-Bit Server VM (build 21.0.13.0.3+1-1-24.04.1-Ubuntu, mixed mode, sharing)
  • OS: linux

Activity

  1. Cz-zbj
    added
    bugSomething isn't workingSomething isn't working
    on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.