Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

intent: an integer capacity:/balance:/of: on a sum roll-up passes the parser but generates uncompilable Java (BigDecimal assumed)

オープン
#7,944 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java
領域
backend

調査の方向性

Read IntentParser.java and RollupAggregates.renderSum, then inspect Repository.java.template for the capacity guard. Trace how Calc narrows numeric values and compare that with the generated Java for integer and long fields. Reproduce with a capacity-bearing sum roll-up using an integer field; done when generated Java compiles and its capacity, balance, and guard calculations handle integer types, with relevant tests passing.

索引モデルが issue の本文から書いたものです。

説明

Problem

IntentParser accepts integer / int / long for a sum roll-up's capacity: / balance: / of: (NUMERIC_TYPES = integer, int, long, decimal, double). The emitted Java assumes BigDecimal throughout, though, so an integer capacity (e.g. seats, hours, units) generates code that does not compile. The whole client-Java batch fails with it, and every controller 404s.

Where (release commit 862f6d1a, 14.93.0)

  • IntentParser.java L145-L146 and requireNumericParentField (~L2439) admit the integer types.
  • RollupAggregates.renderSum emits java.math.BigDecimal capacity = parent.<capacity> == null ? BigDecimal.ZERO : parent.<capacity>;, sum = sum.add(row.<of>) and parent.<balance> = capacity.subtract(sum). None of these compile for an Integer/Long property.
  • The capacity guard in Repository.java.template (~L135-L146) has the same issue: guardConsumed.add(guardRow.<of>) and compareTo(guardParent.<capacity>).

Expected

Either convert at the boundary (new BigDecimal(String.valueOf(x)) / BigDecimal.valueOf(long) in, intValue()/longValue() out, the way Calc already narrows), or have the parser refuse non-decimal types for a capacity-bearing sum with a message that says so. Conversion is what users expect for a seat or hour count.

Found on 14.88.0 by BusinessIntents (wave 2026-10-17) and re-checked against the 14.93.0 source; still present.

🤖 Generated with Claude Code

主要言語
Java
スター
278
フォーク
97
平均マージ
18時間 57分
マージ済み PR(30日)
249

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

eclipse-dirigible/dirigible のほかの issue

eclipse-dirigible/dirigible の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。