Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sop for javac's --release 6 check #237

Merged
merged 1 commit into from
Oct 18, 2019
Merged

Conversation

jcflack
Copy link
Contributor

@jcflack jcflack commented Oct 15, 2019

As reported in issue #235, the --release option in newer javac
versions will check against a ct.sym file included in the jdk
that is meant to record what API was available in which prior
releases, and that file (at least as shipped in Java 11) is
missing the newFactory() methods on XMLInputFactory and
XMLOutputFactory for release 6, so it reports them not found.

Happily, both no-arg newFactory() methods are equivalent to
the no-arg newInstance() methods. Deprecation tags were added
to the newInstance(String,ClassLoader) methods, but not to
the no-arg ones.

As reported in issue #235, the --release option in newer javac
versions will check against a ct.sym file included in the jdk
that is meant to record what API was available in which prior
releases, and that file (at least as shipped in Java 11) is
missing the newFactory() methods on XMLInputFactory and
XMLOutputFactory for release 6, so it reports them not found.

Happily, both no-arg newFactory() methods are equivalent to
the no-arg newInstance() methods. Deprecation tags were added
to the newInstance(String,ClassLoader) methods, but not to
the no-arg ones.
@jcflack jcflack merged commit c3abdb7 into REL1_5_STABLE Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant