http://coldfusion.com logo
Docs
Join the conversationJoin Slack
Channels
adobe
advent-of-code
auwcl
aws
books
bot-dev
box-products
cfeclipse
cfkrauts
cflint
cfml-beginners
cfml-general
cfml-tuning
cfsummit2022
cfwheels
ci
community_courses
css
devops-general
docker
docker-commandbox
documentation
events
friday-puzzle
fusion-reactor
fw1
ide
java-and-jvm
javascript
jobs
jobs-non-us
linen-dev
lucee
masacms
meta
migrations
mura
music
nosql
object-oriented
orm
perf-monitor
prog-general
slack-help
sql
taffy
testing
version-control
vuejs
water-cooler
Powered by Linen
java-and-jvm
  • s

    Simone

    04/04/2022, 4:56 PM
    anyone know how can i convert this java code to coldfusion
    private static Data getdata(String url) {
    
            if (url != null) {
    
                String path = null;
                try {
                    path = new URL(url).getPath().substring(1);
                } catch (MalformedURLException e) {
                    e.printStackTrace();
                }
    
                if (path != null) {
    
                    if (path.indexOf('/') == -1) {
                        return getData(url, "User");
                    } else {
                        if (path.contains("music")) {
                            return getData(url, "Music");
                        } else if (path.contains("video")) {
                            return getData(url, "Video");
                        } else if (path.contains("tag")) {
                            return getData(url, "Tag");
                        }
                    }
                }
            }
    
            return null;
        }
    a
    f
    26 replies · 3 participants
  • c

    cfsimplicity

    08/11/2022, 10:05 AM
    Anyone got any insight into why ACF won't allow the Excel Streaming Reader java lib's
    builder().open()
    method to be called? https://github.com/cfsimplicity/spreadsheet-cfml/issues/297
  • s

    salted

    10/16/2022, 4:01 AM
    Has anyone used java 17 with cf 2018?
  • s

    salted

    10/16/2022, 4:02 AM
    The latest update for 2018 recommends the latest lts java and technically 11 is the latest compatible
  • s

    salted

    10/16/2022, 4:03 AM
    But it's easier to bump a java version than a cf one as there's no cost involved for that
    r
    b
    5 replies · 3 participants
  • b

    bdw429s

    11/03/2022, 7:53 PM
    I'm trying to test something right now with nested/inner classes and I'm wracking my brains trying to think of a part of the JDK that uses inner classes. Does anyone know of an example off the top of your head?
  • b

    bdw429s

    11/03/2022, 7:53 PM
    I Googled and just found 38 thousand guides on how to write my own inner classes 🙄
  • b

    bdw429s

    11/03/2022, 7:56 PM
    As example of what I mean would be
    java.lang.ProcessHandleImpl$Info
    except that class appears to only exist on JDK 11+ and I need this test to run on Java 8 at the moment
  • b

    bdw429s

    11/03/2022, 8:09 PM
    Meh, I've wasted enough time on this. Here's the ticket-- feel free to comment if you have any ideas https://luceeserver.atlassian.net/browse/LDEV-4259
  • m

    mtbrown

    11/03/2022, 10:46 PM
    Most of the JDK inner classes I know of are
    private
    . I'm not sure if that matters. But some of the Collections API appears to have a non-private inner class for a
    Spliterator
    . They're
    static
    , so not sure if that matters either. For example,
    java.util.ArrayList
    has one called
    ArrayListSpliterator
    .
    👍 1
  • c

    Chris Tierney

    02/20/2023, 11:40 PM
    @Chris Tierney has left the channel
Powered by Linen
Title
c

Chris Tierney

02/20/2023, 11:40 PM
@Chris Tierney has left the channel
View count: 1