Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8375093
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:05:07+00:00 2026-06-09T15:05:07+00:00

I have an app in grails which uses list contained in a map. I

  • 0

I have an app in grails which uses list contained in a map. I am using the list for simple string comparison in my code (value[0]==”something” for example). the println showed the value[0] to be “something” but the test always failed. On further checking the class for value[0] [through value[0].getClass() ], I found the class of type [C. Anybody has any clue on this. The list is stored in a map and I am doing a map.each to get to the list (if that makes a difference). Here is my code and println output in my console.

code

println "it.value[0] = " + it.value[0]
println "it.value[1] = " + it.value[1]
println "it.value[2] = " + it.value[2]

println "it.value[0] class = "+ it.value[0].getClass()
println "it.value[1] class = "+ it.value[1].getClass()
println "it.value[2] class = "+ it.value[2].getClass()

output

it.value[0] = abc
it.value[1] = def
it.value[2] = ghi

it.value[0] class = class [C
it.value[1] class = class [C
it.value[2] class = class [C
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:05:08+00:00Added an answer on June 9, 2026 at 3:05 pm

    [C is the Java field descriptor for a primitive character array (char[]). These get shown when you examine the class name of an array type.

    assert ("foo" as char[]).getClass().toString() == 'class [C'
    

    The rules for how they get built are in the JVM Specification section on Field Descriptors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited a Grails app, which uses the Acegi 0.5.3 plugin. The application
We're developing an app (using Grails Spring Security (formerly Acegi)) in which we'll have
I have a grails app that uses the Spring-Security-Core plugin, which integrates Spring Security
I have a page X in my grails app which has a button to
This is my current scenario: I have checked in my grails app code +
My Grails app is using the searchable plugin, which builds on Compass and Lucene
I have a grails 2.0 app which I have installed the resources plugin into,
Background: we have a Grails 1.3.7 app and are using Liquibase to manage our
I have a grails app, and I am using the java-apns 0.1.5 jar! I
I'm writing a web app using grails and spring-security 3.0.3 which requires me to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.