Skip to content

Conversation

@jonpryor
Copy link
Contributor

Commit 8a703c6 had the right idea, but read the
__AndroidEnvironment__* files from the wrong directory.
(This wasn't caught in the PR because, for never adequately explained
reasons, the PR never ran on the required machine.)

Specifically, commit 8a703c6 looks for __AndroidEnvironment__*
files within {outDirForDll}/{ImportsDir}, which would be e.g.
obj/Debug/lp/0/jl, which will never contain these files.

Previously extracted __AndroidEnvironment__* files need to instead
be looked for within the outDirForDll directory, e.g.
obj/Debug/lp/0.

Update the "cached" directory read logic to use the appropriate path.

Commit 8a703c6 had the right idea, but read the
`__AndroidEnvironment__*` files from the *wrong directory*.
(This wasn't caught in the PR because, for never adequately explained
reasons, the PR *never ran on the required machine*.)

Specifically, commit 8a703c6 looks for `__AndroidEnvironment__*`
files within `{outDirForDll}/{ImportsDir}`, which would be e.g.
`obj/Debug/lp/0/jl`, which will *never* contain these files.

Previously extracted `__AndroidEnvironment__*` files need to instead
be looked for within the `outDirForDll` directory, e.g.
`obj/Debug/lp/0`.

Update the "cached" directory read logic to use the appropriate path.
@dellis1972 dellis1972 merged commit ccd083c into dotnet:master Aug 15, 2017
jonpryor added a commit that referenced this pull request Aug 15, 2017
Commit 8a703c6 had the right idea, but read the
`__AndroidEnvironment__*` files from the *wrong directory*.
(This wasn't caught in the PR because, for never adequately explained
reasons, the PR *never ran on the required machine*.)

Specifically, commit 8a703c6 looks for `__AndroidEnvironment__*`
files within `{outDirForDll}/{ImportsDir}`, which would be e.g.
`obj/Debug/lp/0/jl`, which will *never* contain these files.

Previously extracted `__AndroidEnvironment__*` files need to instead
be looked for within the `outDirForDll` directory, e.g.
`obj/Debug/lp/0`.

Update the "cached" directory read logic to use the appropriate path.
jonpryor pushed a commit that referenced this pull request Nov 11, 2020
Fixes: #5251

Context: dotnet/java-interop@99897b2

Changes: dotnet/java-interop@c3c3575...99897b2

  * dotnet/java-interop@99897b24: [jcw-gen] Do not register static methods on an interface. (#745)
  * dotnet/java-interop@54ba3c33: [.JavaSource, .ApiXmlAdjuster] Use Nullable Reference Types (#746)
  * dotnet/java-interop@b588ef50: [java-source-utils] Add response file support (#744)

Adds a test for `static` methods on an interface that is implemented
by a class.  Our existing `static` test was an interface that only
contained `static` members, and thus we did not try to implement the
interface.

Implementing the interface exposed a JCW error.
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Jan 4, 2021
Changes: dotnet/java-interop@2f62ffd...7574f16

  * dotnet/java-interop@7574f166: [generator] Add `generator --with-javadoc-xml=FILE` support. (dotnet#687)
  * dotnet/java-interop@7d197f17: Refactor Crc64 type (dotnet#769)
  * dotnet/java-interop@876442f4: [generator] Fix MSBuild warning/error format for Visual Studio (dotnet#765)
  * dotnet/java-interop@3f6cf72b: [.Localization, .Cecil, .Diagnostics, .Generator] $(Nullable)=enable (dotnet#746)

dotnet/java-interop#687 was merged.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants