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 F11312004F1 for ; Wed, 30 Aug 2017 16:38:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EF5B9169185; Wed, 30 Aug 2017 14:38:15 +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 4164A169184 for ; Wed, 30 Aug 2017 16:38:15 +0200 (CEST) Received: (qmail 99352 invoked by uid 500); 30 Aug 2017 14:38:09 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 99328 invoked by uid 99); 30 Aug 2017 14:38:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2017 14:38:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 02D5DC19BD for ; Wed, 30 Aug 2017 14:38:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.401 X-Spam-Level: X-Spam-Status: No, score=-0.401 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id CoxlT5lSLkxD for ; Wed, 30 Aug 2017 14:38:06 +0000 (UTC) Received: from mail-io0-f170.google.com (mail-io0-f170.google.com [209.85.223.170]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 410975FE15 for ; Wed, 30 Aug 2017 14:38:06 +0000 (UTC) Received: by mail-io0-f170.google.com with SMTP id 81so5598878ioj.5 for ; Wed, 30 Aug 2017 07:38:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=qwRy6oxNNkX/OKGdtlFE8c7k94DylRwHaUh6CNE8WlM=; b=bqh8OUPfBKjCOIOkNnAtrNQvu9MbSizeTtn2VjWTVwSHFZJGTpeLpTE0k7/Vvl1J4o gM422bpreprGYUC4j46TzJgttAibFqubQ568/aSWlX+N9EUYP/JY72iI6LRomiOmVgn0 EAgXNnW9lJVv6QCEpD4Lf+dQO9YogqZ7exG+z0t8o4Wnpv7auo8ujWAg+Zwno3J8vIW9 4paDGow5tKyuDQxOFA33CofqSRdkLyFAKUqwaesE6wROlaOHIQa/8UnWk9rYEI87Rfbp LLx4oI5ZiczrCM7pgsk2ZjvwaK5aIeJEkOK9SX+mSeqqPI4BDZi3CrmHLkbCOtq/AXnz pu0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=qwRy6oxNNkX/OKGdtlFE8c7k94DylRwHaUh6CNE8WlM=; b=FA5M5s62DkJbPwVUoBNdKyD/rZm7k6iJNvqZr5P7wwBScC/R6ZoUYqdLtPPG3JqmBN hUelZwlPbVr6Lgg3lFfEN0qZXTPiOSPXn9pfMeIS3NmJ3eZFXJphDz9e2u3EGaDGcpye 0u5xU/TzgHUhxPBqbmq/JbinhzdszgicraF4uLTTw+/285xoecXxxmlYwNbuRl7+6+7W RUQykFWTMe1ejfB07TPvPKvDp2moTN6poRvABhPgjHQSx4QAggxNlSjPA2MNAE1eXg8g jIXJ49OXqOeqG7mL87tc6cAkB1yFmz3X8iV7lac8ryUTZON/iGHLEtsaUmSAEx3LuW6p kWrA== X-Gm-Message-State: AHPjjUgvRust5P2b6pIdAa0pNcb1dz6oVEJUj3IkfC9to8qZFAUsfF9R qmwdYLuaOHk+HQnoivrEUfFMM7RJIzXR X-Google-Smtp-Source: ADKCNb7k+YWsjaUTSHu8wOLEYrEPLmntZR3XMDheJXbFStqDmUVdRzzj23K0Kkob3feTpkrB5+TOovQhV1DQtUhTUw0= X-Received: by 10.107.33.141 with SMTP id h135mr1553223ioh.179.1504103879248; Wed, 30 Aug 2017 07:37:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.2.92.19 with HTTP; Wed, 30 Aug 2017 07:37:58 -0700 (PDT) In-Reply-To: References: From: Gary Gregory Date: Wed, 30 Aug 2017 08:37:58 -0600 Message-ID: Subject: Re: [BCEL] Breaking changes in 6.1 needed by Tomcat (?) To: Commons Developers List Content-Type: multipart/alternative; boundary="001a11407f6a6d94410557f9792d" archived-at: Wed, 30 Aug 2017 14:38:16 -0000 --001a11407f6a6d94410557f9792d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable We recently dealt with this kind of compatibility issue in Log4j 2 and we decided to subclass the interface in question. I suggest we do the same here. Not pretty but it is type safe and bullet-proof. Gary On Tue, Aug 29, 2017 at 5:17 AM, sebb wrote: > On 28 August 2017 at 20:07, Gary Gregory wrote: > > The question is whether this breaks binary compatibility. If it does, > this > > needs fixing. Unless there are other important changes that warrant a > major > > version, I would go the sub-interface route; ugly, but workable within > the > > same major release. > > According to [1], it seems it does not. > > However it will break source compatibility if a 3rd party implements > the interface. > > Also I seem to remember there were some concerns about the downstream > effect for 3rd party visitor implementations. > > IIRC it was that BCEL will expect to be able to invoke the new > methods; this will fail. > There may be ways around this by catching the exception. > > The dev list should have the details. > > [1] https://docs.oracle.com/javase/specs/jls/se8/html/jls-13.html > > > Gary > > > > On Mon, Aug 28, 2017 at 12:58 PM, Benedikt Ritter > > wrote: > > > >> Hi, > >> > >> Rev. 1782852 [1] has introduced two breaking changes by adding the > methods: > >> > >> public void visitAnnotation(org.apache.bcel.classfile.Annotations) > >> public void visitAnnotationDefault(org.apache.bcel.classfile. > >> AnnotationDefault) > >> > >> to the interface org.apache.bcel.classfile.Visitor. The commit comment > >> indicates that these changes are needed by the Tomcat project. How do = we > >> want to deal with this for the upcoming 6.1 release? I see several > options: > >> > >> - accept these changes and make it explicit in release notes > >> - add a new interface which extends from the Visitor interface and add > the > >> new methods to that interface > >> - major version bump (probably not the best idea=E2=80=A6) > >> > >> Thoughts? > >> Benedikt > >> > >> [1] http://svn.apache.org/viewvc?view=3Drevision&revision=3D1782852 < > >> http://svn.apache.org/viewvc?view=3Drevision&revision=3D1782852> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --001a11407f6a6d94410557f9792d--