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

qdox fails to parse enum #54

Open
zolyfarkas opened this issue Oct 6, 2018 · 2 comments
Open

qdox fails to parse enum #54

zolyfarkas opened this issue Oct 6, 2018 · 2 comments

Comments

@zolyfarkas
Copy link

with:

com.thoughtworks.qdox
qdox
2.0-M9

The following code fails to parse:

package org.spf4j.base;

import java.lang.ref.Reference;
import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;
import java.util.function.Function;


public enum ReferenceType {

    WEAK((Object object) -> new WeakReference<>(object)),
    SOFT((Object object) -> new SoftReference<>(object));


    private final Function<Object, Reference<Object>> factory;

    ReferenceType(final Function<Object, Reference<Object>> factory) {
        this.factory = factory;
    }

    public <T> Reference<T> create(final T object) {
        return (Reference<T>) factory.apply(object);
    }

}
@xpyct707
Copy link

xpyct707 commented Jun 3, 2019

The issue is still actual for 2.0-M10 version.

@yuyl
Copy link

yuyl commented Apr 13, 2022

The issue is still actual for 2.0-M10 version.
Not resolve

luchuanbaker added a commit to TongchengOpenSource/qdox that referenced this issue Apr 16, 2022
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

No branches or pull requests

3 participants