Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AB38F200C2F for ; Mon, 6 Mar 2017 17:28:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A8331160B76; Mon, 6 Mar 2017 16:28:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F29A4160B66 for ; Mon, 6 Mar 2017 17:28:13 +0100 (CET) Received: (qmail 84721 invoked by uid 500); 6 Mar 2017 16:28:13 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 84708 invoked by uid 99); 6 Mar 2017 16:28:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Mar 2017 16:28:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9C5A918396C for ; Mon, 6 Mar 2017 16:28:12 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -2.347 X-Spam-Level: X-Spam-Status: No, score=-2.347 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-2.999, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id fByHLHV7oN7O for ; Mon, 6 Mar 2017 16:28:11 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 237BB5F36E for ; Mon, 6 Mar 2017 16:28:11 +0000 (UTC) Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTPS id 9FFB6E0054 for ; Mon, 6 Mar 2017 16:28:08 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id BC1DB609A8; Mon, 6 Mar 2017 16:28:07 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 60803] in XSSF files getErrorStyle() and setErrorStyle() have mismatching enum values Date: Mon, 06 Mar 2017 16:28:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: POI Overall X-Bugzilla-Version: 3.15-FINAL X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gstrada@imolinfo.it X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 archived-at: Mon, 06 Mar 2017 16:28:14 -0000 https://bz.apache.org/bugzilla/show_bug.cgi?id=3D60803 --- Comment #5 from gstrada@imolinfo.it --- hi everyone, thank s for your replies. After a walkaround inside the librer= y, i ve found out that the Interface "DataValidation" works with enum type in a range of 0-2. public interface DataValidation { /** * Error style constants for error box */ public static final class ErrorStyle { /** STOP style */ public static final int STOP =3D 0x00; /** WARNING style */ public static final int WARNING =3D 0x01; /** INFO style */ public static final int INFO =3D 0x02; }=20=20=20=20 ... I think the right way to improve a solution is to get fit to this scenario.= To do it i've dug more inside and i ve found out that the XSSFDataValidation getErrorStyle depends on STDataValidationErrorStyle.=20 public interface STDataValidationErrorStyle extends XmlString { int INT_STOP =3D 1; int INT_WARNING =3D 2; int INT_INFORMATION =3D 3; ... This class is inside the external dependency ooxml-schemas-1.3-sources.jar,= so in order to provide a patch i need the privilege to edit the source file. If you havge more suggestions i'll be pleased to hear them --=20 You are receiving this mail because: You are the assignee for the bug.= --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org