From user-return-22921-archive-asf-public=cust-asf.ponee.io@poi.apache.org Wed Feb 7 14:26:43 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 9EC7318065B for ; Wed, 7 Feb 2018 14:26:43 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8E772160C5B; Wed, 7 Feb 2018 13:26:43 +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 D4F8E160C3C for ; Wed, 7 Feb 2018 14:26:42 +0100 (CET) Received: (qmail 98825 invoked by uid 500); 7 Feb 2018 13:26:41 -0000 Mailing-List: contact user-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Users List" Delivered-To: mailing list user@poi.apache.org Received: (qmail 98809 invoked by uid 99); 7 Feb 2018 13:26:41 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Feb 2018 13:26:41 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 8E4C61A032B for ; Wed, 7 Feb 2018 13:26:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.102 X-Spam-Level: X-Spam-Status: No, score=-0.102 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id xUOLIFYzaSsm for ; Wed, 7 Feb 2018 13:26:39 +0000 (UTC) Received: from mail-wr0-f182.google.com (mail-wr0-f182.google.com [209.85.128.182]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 20A9F5F17D for ; Wed, 7 Feb 2018 13:26:39 +0000 (UTC) Received: by mail-wr0-f182.google.com with SMTP id 35so1005493wrb.13 for ; Wed, 07 Feb 2018 05:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:date:subject:message-id :references:in-reply-to:to; bh=47rs3owVb4UeqUbDGEVaAAOSEFd4pu4t36hABHJnpAg=; b=tvtgzFMen+z4dyP6ZhxaV8rnryq0jROY6BsYP6vkX1fP4NeEXiQkIsrD0m/ENOxNn9 1A7Ts+GXMwBvUZkFG8GHUZsXr8rOWDgkzt4hY0VeIl0g2RZj3115aQPwVamOeZ0kxTls /s7KDEt/vgJkCBTRAKURZRM7RIe42fOpz/WVpYRe80SdDwfKiIOex0sM+FaHMix20w0F v/5+1V3RyOeTkpjgba2r4Lfibt232jx5skkW7wJbFJVsX8L5I844rfrZmeTZryw/50lN 9/MRLA/BX+EwTXJnqOTUcrU5GL1QNusau3zE1EkTJ2wl1RTAfk5SVE/qmFjeklP43PBx 2FEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version:date :subject:message-id:references:in-reply-to:to; bh=47rs3owVb4UeqUbDGEVaAAOSEFd4pu4t36hABHJnpAg=; b=lcNA+naUu/2tAH3ytOon2LH/LTzfj2qnPT1N/6DJNTVdYXsdgM/6S1xb78o4CivJMZ 5nGAK0pvTJ4IUkKDE71dOgPeh7ntIe07ykTxgpuZ6pTWWNwxGlow5HYbQUuaLoZ273HV uvQ7gVn+N2iw83c8cI22UswJw1KpZ85grKu8KHqEIyIKi9whXec4LYXWwU/Gn4Kdk4E0 lGTCvPiVyPLPTTNY9STQuntZ2lYxCIvNztcixcYkB3myx46Dr9+AlOZDNFyYHOfDnF2U pFV/yuYVf21MkD8JBN4vYh9lDk50YbW3zCogFdRSb5GG1oG9d0mKjwrsCLwKYeK6lWSe 4zcA== X-Gm-Message-State: APf1xPC3j5NYMjGUPtA7GRnlB+koN/R3ID2WZkwaypKtPdu95dvgsxKR 6/UHMVhWD+9xknwMVjUOfhga4SmI X-Google-Smtp-Source: AH8x225zjuPDmCswfIGyCSL5sHeX/ybUAlswcgAUrQA2Sg8SiyV3A6PGk0uCu8H/FZFMur9IoRMzYQ== X-Received: by 10.223.133.212 with SMTP id 20mr5963467wru.167.1518009997865; Wed, 07 Feb 2018 05:26:37 -0800 (PST) Received: from [10.129.93.155] (x2f7fd9b.dyn.telefonica.de. [2.247.253.155]) by smtp.gmail.com with ESMTPSA id 89sm1421965wrq.16.2018.02.07.05.26.29 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Feb 2018 05:26:37 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: =?utf-8?Q?J=C3=B6rn_Franke?= Mime-Version: 1.0 (1.0) Date: Wed, 7 Feb 2018 14:11:10 +0100 Subject: Re: Migrating from 3.14 to 3.17 and JDK7 to JDK9: Issues with Package accessibility: Message-Id: <78C7268D-9159-435C-969A-B5A1664E046C@gmail.com> References: In-Reply-To: To: POI Users List X-Mailer: iPhone Mail (15D60) I think only poi 4.0 officially supports JDK 8 only and not JDK7 anymore. Poi 3.17 supports 6,7,8. I am not sure if Poi is jdk 9 ready rested yet. Maybe the upcoming release 4= .0 will be but the release manager can give you some definitive answer. Do you need any specific jdk9 feature ? > On 7. Feb 2018, at 13:15, Markus Sandmann wrote: >=20 > Hi there, >=20 > currently I try to migrate my Projects to the latest JDK9 as well as > updating used libaries like apache poi. > Comming from v3.14 and JDK7 I have a strange problem that i can't find the= > solution to: >=20 > After updating apache poi I had to adjust some parts of my code because of= > deprecated/removed functions. (Migration to the new Color and FillPattern > enums for example). >=20 > This step works just fine. After that I started the migration from JDK7 to= > JDK9. As soon as i switch die compiler level and system library to jdk9 > some of the Apache POI classes become unresolveable and/or unaccessible. >=20 > I already have a StackOverFlow post concerning this matter here with more > details: > https://stackoverflow.com/questions/48640064/migrating-apache-poi-3-14-to-= 3-17-and-jdk9 >=20 > The offending classes are: >=20 > import org.apache.poi.ss.usermodel.Row; > import org.apache.poi.xssf.usermodel.XSSFColor; > import org.apache.poi.xssf.usermodel.XSSFFont; > import org.apache.poi.xssf.usermodel.XSSFWorkbook; >=20 > All result in either "cannot be resolved" or "is not accessible" depending= > on whether i do a rebuild or a save after edit (which is strange and might= > be an eclipse bug?). >=20 > Other imports from the library like: > import org.apache.poi.ss.usermodel.BorderStyle; > import org.apache.poi.ss.usermodel.Cell; > import org.apache.poi.ss.usermodel.FillPatternType; > import org.apache.poi.ss.usermodel.IndexedColors; > import org.apache.poi.xssf.usermodel.XSSFCellStyle; > import org.apache.poi.xssf.usermodel.XSSFSheet; >=20 > work just fine. >=20 > When I switch the project back to JDK7 without touching any code the stuff= > compiles again just fine. >=20 > What's wrong here? >=20 > Greetings, > Markus --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@poi.apache.org For additional commands, e-mail: user-help@poi.apache.org