Skip to content
This repository was archived by the owner on Apr 4, 2022. It is now read-only.
This repository was archived by the owner on Apr 4, 2022. It is now read-only.

reflections complicate using scalaj in graal builds #206

@snoble

Description

@snoble

Having no dependencies makes scalaj-http really appealing for use with graal. But there is one hiccup because scalaj has a single use of reflections[0]. If there was a way to remove this use of reflections then this could easily be built into a graal binary. Alternatively, there is a work around of having a reflectconfig that looks like

[
  {
    "name" : "javax.net.ssl.HttpsURLConnection",
    "allDeclaredConstructors" : false,
    "allPublicConstructors" : false,
    "allDeclaredMethods" : false,
    "allPublicMethods" : true,
    "allDeclaredClasses" : false,
    "allPublicClasses" : false
  }
]

I'm not sure if there's any interest in making this library easier to use with graal but I figured I should share the work around in case it is valuable to anyone else.

[0]:

cs.getClass.getDeclaredFields.find(_.getName == "delegate").foreach{ del =>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions