linkedin / linkedin/dexmaker

How to proxy anonymous inner class?

Open
#60 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2k
Forks
262
PR merge metrics
No merged PRs in 30d

Description

`cannot proxy inaccessible class class com.leanplum.testproj.MessagesListActivity$1MyListAdapter`

Getting this error, when trying to run:
```
proxyAdapterClass = ProxyBuilder.forClass(existingListAdapter.getClass())
.dexCache(activity.getDir("leanplumClassDir", Context.MODE_PRIVATE))
.handler(handler)
.build();
```

Looks like proxying anonymous inner classes is not supported by dexmaker, is it?

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported error with the ProxyBuilder.forClass(existingListAdapter.getClass()) call and the anonymous MessagesListActivity$1MyListAdapter class shown in the issue. Trace how ProxyBuilder handles inaccessible classes, then establish whether anonymous inner classes are supported and what behavior or documentation would mark the issue done.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.